|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2014-01-22 20:45 UTC] php-mark at zedwood dot com
[2014-02-15 04:48 UTC] rdlowrey@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: rdlowrey
[2014-02-15 04:48 UTC] rdlowrey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 20 19:00:01 2025 UTC |
Description: ------------ I get this error: PHP Warning: openssl_sign(): key type not supported in this PHP build! in /home/mjones/orange.php on line 7 Test script: --------------- <?php exec('openssl ecparam -genkey -text -name prime256v1 -out example-ecc.key'); exec('openssl req -new -key example-ecc.key -sha384 -out example-ecc.csr -subj "/C=US/O=x/CN=test"'); $data ='alpha'; $key = openssl_pkey_get_private("file://example-ecc.key"); $res = openssl_sign($data, $sign, $key, 'ecdsa-with-SHA1'); echo base64_encode($sign)."\n"; Expected result: ---------------- MEUCIHIqeyYqn0qzFEqAfhS2eJp1RHcHAd6FebfMoadZ3oRyAiEArZTEqgtDhCQEinrBWZE2MQ0vvyRyX8MmspPGK0ZQ+wg= Actual result: -------------- PHP Warning: openssl_sign(): key type not supported in this PHP build! in /home/mjones/orange.php on line 7 MEUCIHIqeyYqn0qzFEqAfhS2eJp1RHcHAd6FebfMoadZ3oRyAiEArZTEqgtDhCQEinrBWZE2MQ0vvyRyX8MmspPGK0ZQ+wg=