/php-src/ext/openssl/tests/ |
H A D | openssl_csr_sign_basic.phpt | 35 $csr = openssl_csr_new($dn, $privkey, $args); 37 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args)); 38 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $config_arg)); 39 var_dump(openssl_csr_sign($csr, $cert, $priv, 365, $config_arg)); 40 var_dump(openssl_csr_sign($csr, openssl_x509_read($cert), $priv, 365, $config_arg)); 41 var_dump(openssl_csr_sign($csr, $wrong, $privkey, 365)); 42 var_dump(openssl_csr_sign($csr, null, $wrong, 365)); 52 var_dump(openssl_csr_sign($csr, array(), $privkey, 365)); 58 var_dump(openssl_csr_sign($csr, null, array(), 365)); 62 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $config_arg)); [all …]
|
H A D | openssl_csr_sign_with_serial_hex.phpt | 27 $csr = openssl_csr_new($dn, $privkey, $args); 29 var_dump($cert1 = openssl_csr_sign($csr, null, $privkey, 365, $args, 1234567)); 30 var_dump($cert2 = openssl_csr_sign($csr, null, $privkey, 365, $args, serial_hex: 'DEADBEEF')); 31 var_dump($cert3 = openssl_csr_sign($csr, null, $privkey, 365, $args, 10, 'DEADBEEFDEADBEEFDEADBEEFD… 33 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args, 0, 'DEADBEEG')); 34 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args, 0, '0xDEADBEEF')); 35 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args, 0, str_repeat('FF', 500)));
|
H A D | gh16433.phpt | 8 $csr = openssl_csr_new([], $privkey); 9 var_dump(openssl_csr_sign($csr, null, $privkey, PHP_INT_MAX)); 10 var_dump(openssl_csr_sign($csr, null, $privkey, -1));
|
H A D | openssl_csr_export_basic.phpt | 32 $csr = openssl_csr_new($dn, $privkey, $args); 33 var_dump(openssl_csr_export($csr, $output)); 44 var_dump(openssl_csr_export($csr, $output, false)); 51 openssl_csr_export(): Argument #1 ($csr) must be of type OpenSSLCertificateSigningRequest|string, O…
|
H A D | bug36732.phpt | 22 $csr = openssl_csr_new($dn, $key, $configargs); 23 $crt = openssl_csr_sign($csr, NULL, $key, 365, $configargs); 26 openssl_csr_export($csr, $str, false);
|
H A D | openssl_csr_get_public_key_basic.phpt | 38 $csr = openssl_csr_new($dn, $privkey_file, $args); 39 $csr_file = file_get_contents(__DIR__ . '/cert.csr'); 41 var_dump(openssl_csr_get_public_key($csr));
|
H A D | bug50293.phpt | 31 $csr = openssl_csr_new($dn, $privkey, $args); 32 $sscert = openssl_csr_sign($csr, null, $privkey, 365, $args); 33 openssl_csr_export($csr, $csrout);;
|
H A D | openssl_csr_export_to_file_basic.phpt | 40 $csr = openssl_csr_new($dn, $privkey_file, $args); 41 var_dump(openssl_csr_export_to_file($csr, $csrfile)); 51 var_dump(openssl_csr_export_to_file($csr, $csrfile, false)); 84 openssl_csr_export_to_file(): Argument #1 ($csr) must be of type OpenSSLCertificateSigningRequest|s…
|
H A D | openssl_csr_get_subject_basic.phpt | 38 $csr = openssl_csr_new($dn, $privkey_file, $args); 39 $csr_file = file_get_contents(__DIR__ . '/cert.csr'); 42 var_dump(openssl_csr_get_subject($csr, false));
|
H A D | bug52093.phpt | 20 $csr = openssl_csr_new($dn, $privkey, $options); 21 $cert = openssl_csr_sign($csr, null, $privkey, 365, $options, PHP_INT_MAX);
|
H A D | ecc.phpt | 65 $csr = openssl_csr_new($dn, $keyGenerate, $args); 71 $csr = openssl_csr_new($dn, $key1, $args); 72 var_dump($csr); 74 $pubkey1 = openssl_pkey_get_details(openssl_csr_get_public_key($csr)); 80 $x509 = openssl_csr_sign($csr, null, $key1, 365, $args);
|
H A D | ed25519.phpt | 69 $csr = openssl_csr_new($dn, $keyGenerate, $args); 71 var_dump($csr); 74 $csr = openssl_csr_new($dn, $key1, $args); 75 $pubkey_csr = openssl_pkey_get_details(openssl_csr_get_public_key($csr)); 79 $x509 = openssl_csr_sign($csr, null, $key1, 365, $args);
|
H A D | ed448.phpt | 69 $csr = openssl_csr_new($dn, $keyGenerate, $args); 71 var_dump($csr); 74 $csr = openssl_csr_new($dn, $key1, $args); 75 $pubkey_csr = openssl_pkey_get_details(openssl_csr_get_public_key($csr)); 79 $x509 = openssl_csr_sign($csr, null, $key1, 365, $args);
|
H A D | openssl_csr_new_with_attribs.phpt | 31 $csr = openssl_csr_new( 43 var_dump(openssl_csr_get_subject($csr)); 44 var_dump(openssl_csr_export($csr, $output));
|
H A D | bug47828.phpt | 7 $csr = "-----BEGIN CERTIFICATE----- 33 $cert = str_replace("\\n", "\n", $csr);
|
H A D | openssl_csr_new_array_dn_entry.phpt | 14 $csr = openssl_csr_new( 28 var_dump(openssl_csr_get_subject($csr));
|
H A D | bug55646.phpt | 42 openssl_csr_export($csr_res, $csr); 43 $output = openssl_csr_get_subject($csr);
|
H A D | openssl_csr_export_to_file_leak.phpt | 8 $path = "file://" . __DIR__ . "/cert.csr";
|
H A D | openssl_error_string_basic_openssl3.phpt | 63 // csr file 64 $csr_file = "file://" . __DIR__ . "/cert.csr"; 145 // file for csr (file:///) fails when opennig (BIO_new_file) 148 // file or str csr is not correct PEM - failing PEM_read_bio_X509_REQ
|
H A D | openssl_error_string_basic.phpt | 63 // csr file 64 $csr_file = "file://" . __DIR__ . "/cert.csr"; 144 // file for csr (file:///) fails when opennig (BIO_new_file) 147 // file or str csr is not correct PEM - failing PEM_read_bio_X509_REQ
|
H A D | CertificateGenerator.inc | 130 $csr = openssl_csr_new($dn, $this->lastKey, $config); 132 $csr,
|
H A D | bug81713.phpt | 15 $csr = __DIR__ . '/cert.csr'; 18 $csr_file = "file://$csr"; 161 openssl_csr_get_subject(): Argument #1 ($csr) must not contain any null bytes 162 openssl_csr_get_public_key(): Argument #1 ($csr) must not contain any null bytes
|
/php-src/ext/openssl/ |
H A D | openssl.stub.php | 465 function openssl_csr_export_to_file(OpenSSLCertificateSigningRequest|string $csr, string $output_fi… 468 function openssl_csr_export(OpenSSLCertificateSigningRequest|string $csr, &$output, bool $no_text =… 473 function openssl_csr_sign(OpenSSLCertificateSigningRequest|string $csr, OpenSSLCertificate|string|n… 484 function openssl_csr_get_subject(OpenSSLCertificateSigningRequest|string $csr, bool $short_names = … 486 function openssl_csr_get_public_key(OpenSSLCertificateSigningRequest|string $csr, bool $short_names…
|
H A D | openssl.c | 190 X509_REQ *csr; member 3098 if (csr == NULL) { in php_openssl_csr_from_str() 3104 return csr; in php_openssl_csr_from_str() 3122 X509_REQ *csr; in PHP_FUNCTION() local 3177 X509_REQ *csr; in PHP_FUNCTION() local 3233 X509_REQ *csr; in PHP_FUNCTION() local 3445 if (csr) { in PHP_FUNCTION() 3464 x509_request_obj->csr = csr; in PHP_FUNCTION() 3465 csr = NULL; in PHP_FUNCTION() 3487 if (csr) { in PHP_FUNCTION() [all …]
|
H A D | openssl_arginfo.h | 75 ZEND_ARG_OBJ_TYPE_MASK(0, csr, OpenSSLCertificateSigningRequest, MAY_BE_STRING, NULL) 81 ZEND_ARG_OBJ_TYPE_MASK(0, csr, OpenSSLCertificateSigningRequest, MAY_BE_STRING, NULL) 87 ZEND_ARG_OBJ_TYPE_MASK(0, csr, OpenSSLCertificateSigningRequest, MAY_BE_STRING, NULL) 104 ZEND_ARG_OBJ_TYPE_MASK(0, csr, OpenSSLCertificateSigningRequest, MAY_BE_STRING, NULL) 109 ZEND_ARG_OBJ_TYPE_MASK(0, csr, OpenSSLCertificateSigningRequest, MAY_BE_STRING, NULL)
|