Lines Matching refs:new_x509
253 X509 *new_x509 = NULL, *CAcert = NULL; in req_main() local
814 if ((new_x509 = X509_new_ex(app_get0_libctx(), in req_main()
819 if (!X509_set_serialNumber(new_x509, serial)) in req_main()
822 if (!rand_serial(NULL, X509_get_serialNumber(new_x509))) in req_main()
826 if (!X509_set_issuer_name(new_x509, issuer)) in req_main()
832 if (!set_cert_times(new_x509, not_before, not_after, days, 1)) in req_main()
834 if (!X509_set_subject_name(new_x509, n_subj)) in req_main()
836 if (!pub_key || !X509_set_pubkey(new_x509, pub_key)) in req_main()
841 } else if (!copy_extensions(new_x509, req, ext_copy)) { in req_main()
847 X509V3_set_ctx(&ext_ctx, CAcert != NULL ? CAcert : new_x509, in req_main()
848 new_x509, NULL, NULL, X509V3_CTX_REPLACE); in req_main()
853 if (!cert_matches_key(new_x509, issuer_key)) in req_main()
861 && !X509V3_EXT_add_nconf(req_conf, &ext_ctx, extsect, new_x509)) { in req_main()
868 new_x509)) { in req_main()
875 if (X509_add1_ext_i2d(new_x509, NID_ct_precert_poison, in req_main()
882 i = do_X509_sign(new_x509, x509v1, issuer_key, digest, sigopts, in req_main()
976 ret = X509_print_ex(out, new_x509, get_nameopt(), reqflag); in req_main()
991 ? X509_get_subject_name(new_x509) in req_main()
999 tpubkey = X509_get0_pubkey(new_x509); in req_main()
1032 if (!noout && gen_x509 && new_x509 != NULL) { in req_main()
1034 i = i2d_X509_bio(out, new_x509); in req_main()
1036 i = PEM_write_bio_X509(out, new_x509); in req_main()
1064 X509_free(new_x509); in req_main()