@@ -7,11 +7,10 @@ openssl
7
7
$ cert = file_get_contents (__DIR__ . "/bug28382cert.txt " );
8
8
$ ext = openssl_x509_parse ($ cert );
9
9
var_dump ($ ext ['extensions ' ]);
10
- /* openssl 1.0 prepends the string "Full Name:" to the crlDistributionPoints array key.
11
- For now, as this is the one difference only between 0.9.x and 1.x, it's handled with
12
- placeholders to not to duplicate the test. When more diffs come, a duplication would
13
- be probably a better solution.
14
- */
10
+ /*
11
+ * The reason for %A at the end of crlDistributionPoints and authorityKeyIdentifier is that
12
+ * OpenSSL 3.0 removes new lines which were present in previous versions.
13
+ */
15
14
?>
16
15
--EXPECTF--
17
16
array(11) {
@@ -22,18 +21,16 @@ array(11) {
22
21
["nsCertType"]=>
23
22
string(30) "SSL Client, SSL Server, S/MIME"
24
23
["crlDistributionPoints"]=>
25
- string(%d) "%AURI:http://mobile.blue-software.ro:90/ca/crl.shtml
26
- "
24
+ string(%d) "%AURI:http://mobile.blue-software.ro:90/ca/crl.shtml%A"
27
25
["nsCaPolicyUrl"]=>
28
26
string(38) "http://mobile.blue-software.ro:90/pub/"
29
27
["subjectAltName"]=>
30
28
string(28) "email:sergiu@bluesoftware.ro"
31
29
["subjectKeyIdentifier"]=>
32
30
string(59) "B0:A7:FF:F9:41:15:DE:23:39:BD:DD:31:0F:97:A0:B2:A2:74:E0:FC"
33
31
["authorityKeyIdentifier"]=>
34
- string(115) "DirName:/C=RO/ST=Romania/L=Craiova/O=Sergiu/OU=Sergiu SRL/CN=Sergiu CA/emailAddress=n_sergiu@hotmail.com
35
- serial:00
36
- "
32
+ string(%d) "DirName:/C=RO/ST=Romania/L=Craiova/O=Sergiu/OU=Sergiu SRL/CN=Sergiu CA/emailAddress=n_sergiu@hotmail.com
33
+ serial:00%A"
37
34
["keyUsage"]=>
38
35
string(71) "Digital Signature, Non Repudiation, Key Encipherment, Data Encipherment"
39
36
["nsBaseUrl"]=>
0 commit comments