note 130532 added to function.openssl-csr-sign
| From: | play.it@play-it.net | Date: | Sat, 25 Oct 2025 18:06:37 +0000 |
| Subject: | note 130532 added to function.openssl-csr-sign | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222400@lists.php.net to get a copy of this message | ||
When using
openssl_csr_new() or openssl_csr_sign() for X25519 or Ed25519
certs, you HAVE TO set the ["digest_alg" => ""] or if you use
the "config" option to null, like so:
<?php
// Setting the "digest_alg" option:
$csr = openssl_csr_new(
$distinguished_names,
$private_key,
["digest_alg" => ""]
);
// Setting with "config":
$csr = openssl_csr_new(
$distinguished_names,
$private_key,
["config" => "/path/to/openssl.conf"]
);
?>
openssl.conf
```
[req]
default_md = null
// ...
```
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 89.245.224.102)
----
Manual Page -- https://php.net/manual/en/function.openssl-csr-sign.php
Edit -- https://main.php.net/note/edit/130532
Del: integrated -- https://main.php.net/note/delete/130532/integrated
Del: useless -- https://main.php.net/note/delete/130532/useless
Del: bad code -- https://main.php.net/note/delete/130532/bad+code
Del: spam -- https://main.php.net/note/delete/130532/spam
Del: non-english -- https://main.php.net/note/delete/130532/non-english
Del: in docs -- https://main.php.net/note/delete/130532/in+docs
Del: other reasons-- https://main.php.net/note/delete/130532
Reject -- https://main.php.net/note/reject/130532
Search -- https://main.php.net/manage/user-notes.php