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 #177395] Sat, 24 March 2012 11:22
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma: 0
Senior Member
Burocropoli wrote:
> J.O. Aho ha scritto quanto segue il 24/03/2012 9.48>
>> 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.
>>
> via command line i can to use without type password:
> openssl.exe smime -sign -signer "aaa.pem" -in "test.txt" -out "test.sig"
> -inkey "aaa.key"
>
>
> with openssl_pkcs7_sign do it not possible?

tried with empty or null value for password?


--

//Aho
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: openssl_pkcs7_sign with key file
Next Topic: Forum displays PHP code, not website
Goto Forum:
  

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

Current Time: Mon Nov 25 22:59:07 GMT 2024

Total time taken to generate the page: 0.04716 seconds