Re: Can PEM_read_RSAPublicKey() load public key from private key ?

2008-04-12 Thread shankar ks
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

Re: Can PEM_read_RSAPublicKey() load public key from private key ?

2008-04-12 Thread Th�nh Trung Nguyễn
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

Re: Can PEM_read_RSAPublicKey() load public key from private key ?

2008-04-12 Thread shankar ks
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

Can PEM_read_RSAPublicKey() load public key from private key ?

2008-04-12 Thread Th�nh Trung Nguyễn
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

How to implement compression as a CMS package in 0.9.7e version

2008-04-12 Thread shankar ks
Hi , Can Any one knows how to implement compression (zlib ) as a CMS Enveolpe data in SSL version 0.9.7e( we have resitricted to this version only). -- --Best Regards Shankar

Re: Hi

2008-04-12 Thread Jurko Gospodnetić
Hi Rodfraga. Hello, I’m from México, we have a .NET Client application, and a Server Java Application for Webservices, We want to implement the SSL protocol, by using the OpenSSL, so I’m the .NET Developer but honestly I don’t have an idea how to start or what must I do to implement this l

Re: Hash input and output

2008-04-12 Thread Marek . Marcola
Hello, [EMAIL PROTECTED] wrote on 04/11/2008 03:56:45 PM: > Hi Marek, > > I do the following: > > static char *login="login"; > static char *password="password"; > static char *label="label"; > > const unsigned char *buf=NULL; > strcat(&buf, login); strcat(&buf, password); strcat(&buf, label);

Hi

2008-04-12 Thread Rodfraga
Hello, I’m from México, we have a .NET Client application, and a Server Java Application for Webservices, We want to implement the SSL protocol, by using the OpenSSL, so I’m the .NET Developer but honestly I don’t have an idea how to start or what must I do to implement this libraries using Visu

Hi

2008-04-12 Thread Rodfraga
Hello, I’m from México, we have a .NET Client application, and a Server Java Application for Webservices, We want to implement the SSL protocol, by using the OpenSSL, so I’m the .NET Developer but honestly I don’t have an idea how to start or what must I do to implement this libraries using Visu

Re: Hash input and output

2008-04-12 Thread Badra
Hi Marek, I do the following: static char *login="login"; static char *password="password"; static char *label="label"; const unsigned char *buf=NULL; strcat(&buf, login); strcat(&buf, password); strcat(&buf, label); unsigned char *m1[20]; unsigned char *m2[20]; SHA1(&buf, strlen(&buf), m1); /