Skip to content

Commit 52c2f11

Browse files
committed
Use sha256 as digest algorithm in certificate generator
This makes the generated certificates compatible with security level 2, which is apparently the default on Ubuntu 20.04. Unfortunately this does not fix all tests, because some are using pre-generated certificates.
1 parent 9b3e579 commit 52c2f11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/openssl/tests/CertificateGenerator.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,8 @@ class CertificateGenerator
9797
openssl_csr_new($dn, $this->lastKey, ['req_extensions' => 'v3_req']),
9898
$this->ca,
9999
$this->caKey,
100-
2
100+
/* days */ 2,
101+
['digest_alg' => 'sha256'],
101102
);
102103

103104
$certText = '';

0 commit comments

Comments
 (0)