Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #5215

Re: openssl_pkcs7_sign with key file

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: openssl_pkcs7_sign with key file
Date Sat, 24 Mar 2012 12:22:56 +0100
Lines 30
Message-ID <9t5p4gF3tqU1@mid.individual.net> (permalink)
References <jkk162$88j$1@dont-email.me> <9t5g24F16eU1@mid.individual.net> <jkk42k$kn3$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net Nu5X/9Uz9LS9Puc/J3RPsQcePsTf4YyDryNskCfFEREfS24ixP
Cancel-Lock sha1:5UnSjztfo2Ozw1Lgqj0mnoS56uY=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120321 Firefox/11.0 SeaMonkey/2.8
In-Reply-To <jkk42k$kn3$1@dont-email.me>
Xref csiph.com comp.lang.php:5215

Show key headers only | View raw


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.html
>>
>>
>> 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

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

openssl_pkcs7_sign with key file Burocropoli <burocropoli@burocropoli.com.invalid> - 2012-03-24 09:38 +0100
  Re: openssl_pkcs7_sign with key file "J.O. Aho" <user@example.net> - 2012-03-24 09:48 +0100
    Re: openssl_pkcs7_sign with key file Burocropoli <burocropoli@burocropoli.com.invalid> - 2012-03-24 10:27 +0100
      Re: openssl_pkcs7_sign with key file "J.O. Aho" <user@example.net> - 2012-03-24 12:22 +0100
        Re: openssl_pkcs7_sign with key file Burocropoli <burocropoli@burocropoli.com.invalid> - 2012-03-24 12:45 +0100

csiph-web