Home »
Imported messages »
comp.lang.php »
Re: openssl_pkcs7_sign with key file
Re: openssl_pkcs7_sign with key file [message #177395] |
Sat, 24 March 2012 11:22 |
J.O. Aho
Messages: 194 Registered: September 2010
Karma:
|
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
|
|
|
Goto Forum:
Current Time: Thu Nov 28 04:57:21 GMT 2024
Total time taken to generate the page: 0.04216 seconds