note 108271 added to function.openssl-pkey-export
| From: | eric at ericseastrand dot com | Date: | Thu, 12 Apr 2012 23:49:18 +0000 |
| Subject: | note 108271 added to function.openssl-pkey-export | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-187096@lists.php.net to get a copy of this message | ||
I kept banging my head against the wall today trying to figure out why the RSA keys I was generating
were encrypted (they have this stuff in them)
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE3-CBC,BEA1180EADE1524F
I finally realized that the issue was that I was passing a password into the
"openssl_pkey_export" method inadvertently.
So the moral of the story is: you have to use NULL as the password. using an empty string will still
cause the key to be encrypted.
----
Server IP: 64.71.164.2
Probable Submitter: 216.110.94.189
----
Manual Page -- http://www.php.net/manual/en/function.openssl-pkey-export.php
Edit -- https://master.php.net/note/edit/108271
Del: integrated -- https://master.php.net/note/delete/108271/integrated
Del: useless -- https://master.php.net/note/delete/108271/useless
Del: bad code -- https://master.php.net/note/delete/108271/bad+code
Del: spam -- https://master.php.net/note/delete/108271/spam
Del: non-english -- https://master.php.net/note/delete/108271/non-english
Del: in docs -- https://master.php.net/note/delete/108271/in+docs
Del: other reasons-- https://master.php.net/note/delete/108271
Reject -- https://master.php.net/note/reject/108271
Search -- https://master.php.net/manage/user-notes.php