Lines Matching defs:pem
222 char *der, *pem;
262 os_snprintf(buf, sizeof(buf), "SP/%s/client-ca.pem", fqdn);
263 if (rename("Cert/est-cacerts.pem", buf) < 0) {
264 wpa_printf(MSG_INFO, "Could not move est-cacerts.pem to client-ca.pem: %s",
268 pem = os_readfile(buf, &pem_len);
270 os_snprintf(buf, sizeof(buf), "SP/%s/client-cert.pem", fqdn);
271 if (rename("Cert/est_cert.pem", buf) < 0) {
272 wpa_printf(MSG_INFO, "Could not move est_cert.pem to client-cert.pem: %s",
274 os_free(pem);
278 if (pem) {
281 fwrite(pem, pem_len, 1, f);
284 os_free(pem);
287 os_snprintf(buf, sizeof(buf), "SP/%s/client-key.pem", fqdn);
288 if (rename("Cert/privkey-plain.pem", buf) < 0) {
289 wpa_printf(MSG_INFO, "Could not move privkey-plain.pem to client-key.pem: %s",
295 unlink("Cert/est-req.pem");
500 snprintf(fname, sizeof(fname), "%s/ca.pem", dir);
502 snprintf(fname, sizeof(fname), "%s/polupd-ca.pem", dir);
506 snprintf(fname, sizeof(fname), "%s/aaa-ca.pem", dir);
1603 res = os_snprintf(buf, sizeof(buf), "%s/SP/%s/client-cert.pem", dir,
1613 res = os_snprintf(buf, sizeof(buf), "%s/SP/%s/client-key.pem", dir,
1645 res = os_snprintf(buf, sizeof(buf), "%s/SP/%s/aaa-ca.pem", dir, fqdn);
2196 os_snprintf(fname, sizeof(fname), "%s/osu-ca.pem", dir);
2592 os_snprintf(ca_fname_buf, sizeof(ca_fname_buf), "SP/%s/ca.pem",
2663 "SP/%s/client-cert.pem", ctx->fqdn);
2666 "SP/%s/client-key.pem", ctx->fqdn);
2753 "SP/%s/ca.pem", buf);
2828 "SP/%s/client-cert.pem", ctx->fqdn);
2831 "SP/%s/client-key.pem", ctx->fqdn);