[xmlsec] Problems load private key
Aleksey Sanin
aleksey@aleksey.com
Thu, 20 Jun 2002 08:53:49 -0700
--------------020406020009050502010005
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
I think I understand you correctly. The problem is that there is now
"standard" way
of converting the passphrase user types in from the keyboard into the
secret key for
RC4, DES3, etc. This conversion is application specific and if you do
this in different
way in different places nothing will work (this was the reason for the
"how" question).
Please take a look at the openssl.exe sources (apps/*) to find out how
the openssl
does this conversion.
Aleksey
Lidia wrote:
>I think that you don't understand me.
>I developed a application to generate keys, certificates...
>after I use this keys and certificates to sign xml documents using your library.
>You can generate with openssl private keys protected with password using a asimetric cypher algorithm (as RC4 or 3DES). I try to load the private key with xmlSecSimpleKeysMngrLoadPemKey indicating the pass phrase (password) and load process failed.
>I hope that this time you can understand me.
>Regards,
>lidia
>
>----- Original Message -----
>From: "Aleksey Sanin" <aleksey@aleksey.com>
>To: "Lidia" <lidia.castillejo01@campus.upf.es>
>Cc: <xmlsec@aleksey.com>
>Sent: Thursday, June 20, 2002 5:18 PM
>Subject: Re: [xmlsec] Problems load private key
>
>
>
>
>>Do you have any error messages from xmlsec? And how did
>>you create the encrypted PEM key?
>>
>>Aleksey
>>
>>Lidia wrote:
>>
>>
>>
>>>Hi,
>>>
>>>When I generate signature i load private key using:
>>> key=xmlSecSimpleKeysMngrLoadPemKey(keysMngr, private_key_file,password,NULL,1)
>>>
>>>The problem is if the private_key_file is encrypted with password then I can't load the key. If the "private_key_file" hasn't password I have not problems and I can load key.
>>>Program doesn't crashing only return key=NULL.
>>>
>>>Regards,
>>>lidia
>>>
>>>
>>>
>>>_______________________________________________
>>>xmlsec mailing list
>>>xmlsec@aleksey.com
>>>http://www.aleksey.com/mailman/listinfo/xmlsec
>>>
>>>
>>>
>>>
>>
>>
>>
>
>_______________________________________________
>xmlsec mailing list
>xmlsec@aleksey.com
>http://www.aleksey.com/mailman/listinfo/xmlsec
>
>
--------------020406020009050502010005
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 7bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
I think I understand you correctly. The problem is that there is now "standard"
way<br>
of converting the passphrase user types in from the keyboard into the secret
key for <br>
RC4, DES3, etc. This conversion is application specific and if you do this
in different<br>
way in different places nothing will work (this was the reason for the "how"
question).<br>
Please take a look at the openssl.exe sources (apps/*) to find out how the
openssl<br>
does this conversion.<br>
<br>
Aleksey <br>
<br>
Lidia wrote:<br>
<blockquote type="cite" cite="mid000401c2186d$546b1140$0300000a@yoke">
<pre wrap="">I think that you don't understand me.
I developed a application to generate keys, certificates...
after I use this keys and certificates to sign xml documents using your library.
You can generate with openssl private keys protected with password using a asimetric cypher algorithm (as RC4 or 3DES). I try to load the private key with xmlSecSimpleKeysMngrLoadPemKey indicating the pass phrase (password) and load process failed.
I hope that this time you can understand me.
Regards,
lidia
----- Original Message -----
From: "Aleksey Sanin" <a class="moz-txt-link-rfc2396E" href="mailto:aleksey@aleksey.com"><aleksey@aleksey.com></a>
To: "Lidia" <a class="moz-txt-link-rfc2396E" href="mailto:lidia.castillejo01@campus.upf.es"><lidia.castillejo01@campus.upf.es></a>
Cc: <a class="moz-txt-link-rfc2396E" href="mailto:xmlsec@aleksey.com"><xmlsec@aleksey.com></a>
Sent: Thursday, June 20, 2002 5:18 PM
Subject: Re: [xmlsec] Problems load private key
</pre>
<blockquote type="cite">
<pre wrap="">Do you have any error messages from xmlsec? And how did
you create the encrypted PEM key?
Aleksey
Lidia wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
When I generate signature i load private key using:
key=xmlSecSimpleKeysMngrLoadPemKey(keysMngr, private_key_file,password,NULL,1)
The problem is if the private_key_file is encrypted with password then I can't load the key. If the "private_key_file" hasn't password I have not problems and I can load key.
Program doesn't crashing only return key=NULL.
Regards,
lidia
_______________________________________________
xmlsec mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a>
<a class="moz-txt-link-freetext" href="http://www.aleksey.com/mailman/listinfo/xmlsec">http://www.aleksey.com/mailman/listinfo/xmlsec</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
xmlsec mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xmlsec@aleksey.com">xmlsec@aleksey.com</a>
<a class="moz-txt-link-freetext" href="http://www.aleksey.com/mailman/listinfo/xmlsec">http://www.aleksey.com/mailman/listinfo/xmlsec</a>
</pre>
</blockquote>
<br>
</body>
</html>
--------------020406020009050502010005--