We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7fdd35d + b638d30 commit 8d7a489Copy full SHA for 8d7a489
ext/openssl/tests/022.phpt
@@ -5,6 +5,8 @@ openssl_csr_export() tests
5
--FILE--
6
<?php
7
$wrong = "wrong";
8
+$config = __DIR__ . DIRECTORY_SEPARATOR . 'openssl.cnf';
9
+$config_arg = array('config' => $config);
10
11
$dn = array(
12
"countryName" => "BR",
@@ -18,10 +20,11 @@ $args = array(
18
20
"digest_alg" => "sha1",
19
21
"private_key_bits" => 2048,
22
"private_key_type" => OPENSSL_KEYTYPE_DSA,
- "encrypt_key" => true
23
+ "encrypt_key" => true,
24
+ "config" => $config,
25
);
26
-$privkey = openssl_pkey_new();
27
+$privkey = openssl_pkey_new($config_arg);
28
$csr = openssl_csr_new($dn, $privkey, $args);
29
var_dump(openssl_csr_export($csr, $output));
30
var_dump(openssl_csr_export($wrong, $output));
0 commit comments