FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Re: openssl_pkcs7_sign with key file
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Re: openssl_pkcs7_sign with key file [message #177389] Sat, 24 March 2012 08:48
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma: 0
Senior Member
Burocropoli wrote:
> usually sign with:
> openssl_pkcs7_sign("msg.txt","signed.txt",
> "signing_cert.pem",array("private_key.pem", "password"),array());
>
> do it is possibile to use a key file instead of the "password"?

You can "wash" the private key from the password

http://www.mnxsolutions.com/apache/removing-a-passphrase-from-an-ssl-key.ht ml

Of course this would mean that who ever got hold of the key, would be able to
use it too.

--

//Aho
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Random string from selected Unicode character set (test data)
Next Topic: Re: openssl_pkcs7_sign with key file
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 09:15:32 GMT 2024

Total time taken to generate the page: 0.03894 seconds