Lines Matching refs:new_cert
3164 X509 *cert = NULL, *new_cert = NULL; in PHP_FUNCTION() local
3240 new_cert = X509_new(); in PHP_FUNCTION()
3241 if (new_cert == NULL) { in PHP_FUNCTION()
3247 if (!X509_set_version(new_cert, 2)) { in PHP_FUNCTION()
3252 ASN1_INTEGER_set_int64(X509_get_serialNumber(new_cert), serial); in PHP_FUNCTION()
3254 ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial); in PHP_FUNCTION()
3257 X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr)); in PHP_FUNCTION()
3260 cert = new_cert; in PHP_FUNCTION()
3262 if (!X509_set_issuer_name(new_cert, X509_get_subject_name(cert))) { in PHP_FUNCTION()
3266 X509_gmtime_adj(X509_getm_notBefore(new_cert), 0); in PHP_FUNCTION()
3267 X509_gmtime_adj(X509_getm_notAfter(new_cert), 60*60*24*num_days); in PHP_FUNCTION()
3268 i = X509_set_pubkey(new_cert, key); in PHP_FUNCTION()
3276 X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0); in PHP_FUNCTION()
3278 if (!X509V3_EXT_add_nconf(req.req_config, &ctx, req.extensions_section, new_cert)) { in PHP_FUNCTION()
3285 if (!X509_sign(new_cert, priv_key, req.digest)) { in PHP_FUNCTION()
3293 cert_object->x509 = new_cert; in PHP_FUNCTION()
3298 if (!new_cert_used && new_cert) { in PHP_FUNCTION()
3299 X509_free(new_cert); in PHP_FUNCTION()
3308 if (cert_str && cert && cert != new_cert) { in PHP_FUNCTION()