Hello,
> One thing I will conform you is " we can not get public key from a
private key ". I do
> not remember where i studied , but it is true.
> So do not try to get a public key from private key.
This is not true.
Best regards,
--
Marek Marcola <[EMAIL PROTECTED]>
_
Thanks !
I forgot the FAQ, sorry !
"Dr. Stephen Henson" <[EMAIL PROTECTED]> wrote: On Sat, Apr 12, 2008, Thnh
Trung Nguyá»Â
n wrote:
> Hi !
>
> I used PEM_write_RSAPrivateKey() to write private key to a pem file.
> Then I used PEM_read_RSAPublicKey() to read public key from that file, but it
On Sat, Apr 12, 2008, Thnh Trung Nguyễn wrote:
> Hi !
>
> I used PEM_write_RSAPrivateKey() to write private key to a pem file.
> Then I used PEM_read_RSAPublicKey() to read public key from that file, but it
> returned an error.
> The ERR_error_string() only return message like :
> error:0906
Hi shankar,
Thanks you for your answer !
You said " we can not get public key from a private key ".
Then you said "So PEM_read_RSAPublicKey() or PEM_read_RSA_PUBKEY() can be used
to load public key from a private key"
I'm being confused. Did you mean we those 2 functions can not be use to load
Hi Trung,
One thing I will conform you is " we can not get public key from a private
key ". I do not remember where i studied , but it is true.
So do not try to get a public key from private key.
And I have mistakenly typed as BEGIN RSA CERTIFICATE , as you told it is
BEGIN RSA PUBLIC KEY only.
S
Thank you for fast response !
But it's ok if I use PEM_read_RSAPublicKey() to load public key from file save
by using PEM_write_RSAPublicKey().
And even publickey extract by openssl command doesn't have any line as "BEGIN
RSA CERTIFICATE". It just has line as "BEGIN RSA PUBLIC KEY".
I've tried
Hi Trung,
The error which u got was you can not read the public key as in the
certificate it is not finding the lines as "BEGIN RSA CERTIFICATE"
so here i am giving you the code , use it directly , it will work fine as i
refined it many times ... and one more thing is error string funtion will
giv
Hi !
I used PEM_write_RSAPrivateKey() to write private key to a pem file.
Then I used PEM_read_RSAPublicKey() to read public key from that file, but it
returned an error.
The ERR_error_string() only return message like :
error:0906D06C:lib(9):func(109):reason(108)
So can any one tell me can i