Lines Matching refs:privkey
270 EVP_PKEY *privkey = NULL, *CAkey = NULL, *pubkey = NULL; in x509_main() local
659 privkey = load_key(privkeyfile, keyformat, 0, passin, e, "private key"); in x509_main()
660 if (privkey == NULL) in x509_main()
798 if ((pubkey != NULL || privkey != NULL || req != NULL) in x509_main()
800 privkey != NULL ? privkey : in x509_main()
852 if (privkey != NULL && !cert_matches_key(x, privkey)) in x509_main()
860 if (reqfile || newcert || privkey != NULL || CAfile != NULL) { in x509_main()
875 if (!X509V3_set_issuer_pkey(&ext_ctx, privkey)) in x509_main()
896 if (privkey == NULL) { in x509_main()
914 if (!do_X509_REQ_sign(rq, privkey, digest, sigopts)) in x509_main()
942 } else if (privkey != NULL) { in x509_main()
943 if (!do_X509_sign(x, 0, privkey, digest, sigopts, &ext_ctx)) in x509_main()
1122 EVP_PKEY_free(privkey); in x509_main()