note 130533 added to function.openssl-csr-new
| From: | play.it@play-it.net | Date: | Sat, 25 Oct 2025 18:08:07 +0000 |
| Subject: | note 130533 added to function.openssl-csr-new | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-222401@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-new.php
Edit -- https://main.php.net/note/edit/130533
Del: integrated -- https://main.php.net/note/delete/130533/integrated
Del: useless -- https://main.php.net/note/delete/130533/useless
Del: bad code -- https://main.php.net/note/delete/130533/bad+code
Del: spam -- https://main.php.net/note/delete/130533/spam
Del: non-english -- https://main.php.net/note/delete/130533/non-english
Del: in docs -- https://main.php.net/note/delete/130533/in+docs
Del: other reasons-- https://main.php.net/note/delete/130533
Reject -- https://main.php.net/note/reject/130533
Search -- https://main.php.net/manage/user-notes.php