Lines Matching refs:new_cert
3244 X509 *cert = NULL, *new_cert = NULL; in PHP_FUNCTION() local
3321 new_cert = X509_new(); in PHP_FUNCTION()
3322 if (new_cert == NULL) { in PHP_FUNCTION()
3328 if (!X509_set_version(new_cert, 2)) { in PHP_FUNCTION()
3344 int success = a2i_ASN1_INTEGER(in, X509_get_serialNumber(new_cert), buffer, sizeof(buffer)); in PHP_FUNCTION()
3352 PHP_OPENSSL_ASN1_INTEGER_set(X509_get_serialNumber(new_cert), serial); in PHP_FUNCTION()
3355 X509_set_subject_name(new_cert, X509_REQ_get_subject_name(csr)); in PHP_FUNCTION()
3358 cert = new_cert; in PHP_FUNCTION()
3360 if (!X509_set_issuer_name(new_cert, X509_get_subject_name(cert))) { in PHP_FUNCTION()
3364 X509_gmtime_adj(X509_getm_notBefore(new_cert), 0); in PHP_FUNCTION()
3365 X509_gmtime_adj(X509_getm_notAfter(new_cert), 60*60*24*num_days); in PHP_FUNCTION()
3366 i = X509_set_pubkey(new_cert, key); in PHP_FUNCTION()
3374 X509V3_set_ctx(&ctx, cert, new_cert, csr, NULL, 0); in PHP_FUNCTION()
3376 if (!X509V3_EXT_add_nconf(req.req_config, &ctx, req.extensions_section, new_cert)) { in PHP_FUNCTION()
3383 if (!X509_sign(new_cert, priv_key, req.digest)) { in PHP_FUNCTION()
3391 cert_object->x509 = new_cert; in PHP_FUNCTION()
3396 if (!new_cert_used && new_cert) { in PHP_FUNCTION()
3397 X509_free(new_cert); in PHP_FUNCTION()
3406 if (cert_str && cert && cert != new_cert) { in PHP_FUNCTION()