Lines Matching refs:new_cert
3271 X509 *cert = NULL, *new_cert = NULL; in PHP_FUNCTION() local
3341 new_cert = X509_new(); in PHP_FUNCTION()
3342 if (new_cert == NULL) { in PHP_FUNCTION()
3348 if (!X509_set_version(new_cert, 2)) { in PHP_FUNCTION()
3353 ASN1_INTEGER_set_int64(X509_get_serialNumber(new_cert), serial); in PHP_FUNCTION()
3355 ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial); in PHP_FUNCTION()
3358 X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr)); in PHP_FUNCTION()
3361 cert = new_cert; in PHP_FUNCTION()
3363 if (!X509_set_issuer_name(new_cert, X509_get_subject_name(cert))) { in PHP_FUNCTION()
3367 X509_gmtime_adj(X509_getm_notBefore(new_cert), 0); in PHP_FUNCTION()
3368 X509_gmtime_adj(X509_getm_notAfter(new_cert), 60*60*24*(long)num_days); in PHP_FUNCTION()
3369 i = X509_set_pubkey(new_cert, key); in PHP_FUNCTION()
3377 X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0); in PHP_FUNCTION()
3379 if (!X509V3_EXT_add_conf(req.req_config, &ctx, req.extensions_section, new_cert)) { in PHP_FUNCTION()
3386 if (!X509_sign(new_cert, priv_key, req.digest)) { in PHP_FUNCTION()
3394 cert_object->x509 = new_cert; in PHP_FUNCTION()
3398 if (cert == new_cert) { in PHP_FUNCTION()