Bug #66501 [Opn->Csd]: EC key type not supported in this PHP build

From: Date: Sat, 15 Feb 2014 04:48:46 +0000
Subject: Bug #66501 [Opn->Csd]: EC key type not supported in this PHP build
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184303@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66501&edit=1 ID: 66501 Updated by: rdlowrey@php.net Reported by: php-mark at zedwood dot com Summary: EC key type not supported in this PHP build -Status: Open +Status: Closed Type: Bug Package: OpenSSL related Operating System: Ubuntu 12.04 PHP Version: 5.5.8 -Assigned To: +Assigned To: rdlowrey Block user comment: N Private report: N New Comment: This fix is now merged into the 5.4, 5.5, 5.6 and master branches. Previous Comments: ------------------------------------------------------------------------ [2014-01-22 20:45:50] php-mark at zedwood dot com Other people are affected by this: http://www.serverphorums.com/read.php?7,465882 http://stackoverflow.com/questions/10411450/php-openssl-sign-ecparam-key-type-not-supported-in-this-php-build ------------------------------------------------------------------------ [2014-01-16 20:42:05] php-mark at zedwood dot com 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= ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66501&edit=1

« previous php.bugs (#184303) next »