https
Hi, I have a toallylame question to anybody who can help me: I'd like to make apache work with https:// requests. I tried to create crl,crt,. keys with openssh and CA.pl, but the only thing what works with https is webalizer... :-) please help me! :-) Józsa Ádám | +36-20/984-21-96: [EMAIL PROTECTED] : http://www.kinetiks.hu :
encrypting with rsa public key..
Hi, In my c code I am sending the rsa public key from A (which generated the RSA key pair) to B. B now tries to encrypt a message with the public key received from A and send the encryted message to A and A decrypts it with the private key of the RSA key pair it generated. Now the problem is that I cannot encrypt the message at B with the received public key (it gives seg fault). Is it possible to do what I have mentioned ? can you tell me where am I going wrong ? Here is the snippet of my code... - A - if ((rsa=RSA_generate_key(NUM_BITS,RSA_F4,NULL,NULL))==NULL) { perror(RSA key generation failed); } /* Save the public and private keys into the char array */ p = ki_pub; ki_pub_len = i2d_RSAPublicKey(rsa,p); printf(Length of public key is %d\n,ki_pub_len); p = ki_pri; ki_pri_len = i2d_RSAPrivateKey(rsa,p); printf(Length of private key is %d\n,ki_pri_len); /* Find out the length that can be encoded by RSA */ rsa_msg_len = RSA_size(rsa); printf(Max encoding length is %d\n,rsa_msg_len); /* send ki_pub_len to B */ ... /* send ki_pub to B */ ... /* send rsa_msg_len to B */ ... --- B --- /* receive ki_pub_len */ ... /* receive ki_pub */ ... /* put the ki_pub into pub_rsa */ p = ki_pub; pub_rsa = d2i_RSAPublicKey(NULL, p, (long)ki_pub_len); /* receive rsa_msg_len */ ... /* Encrypt message */ encrypt_len = RSA_public_encrypt(msg_len, unencrypted_mesg, encrypted_mesg, pub_rsa, RSA_PKCS1_OAEP_PADDING); RSA_public_encrypt() segfaults at B. help appreciated, thanks, Manish -- Manish Chablani ([EMAIL PROTECTED]), Graduate Student, Computer Science Department, Indiana University -- __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Why the result of messages digest using md5 differs
Hi, All; Why the result of messages digest using md5 differs from using openssl md5? for example. # md5 -q -s hello 5d41402abc4b2a76b9719d911017c592 but when I used openssl. #echo hello | openssl md5 f447b20a7fcbf53a5d5be013ea0b15af why are they different? I used openssl 0.9.6d on FreeBsd4.2 UNIX. thans your help __ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Why the result of messages digest using md5 differs
On Sun, 14 Jul 2002, hongbin tang wrote: Hi, All; Why the result of messages digest using md5 differs from using openssl md5? for example. # md5 -q -s hello 5d41402abc4b2a76b9719d911017c592 but when I used openssl. #echo hello | openssl md5 f447b20a7fcbf53a5d5be013ea0b15af why are they different? I used openssl 0.9.6d on FreeBsd4.2 UNIX. echo puts a newline character at the end of the string. Try this: echo -n hello | openssl md5 __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Speaking of shared secrets
Richard Levitte - VMS Whacker wrote: In message [EMAIL PROTECTED] on Tue, 9 Jul 2002 11:43:04 +0300, Vadim Fedukovich [EMAIL PROTECTED] said: vf please consider to include this code into distribution Thanks and forgive me for being a nuisance... Errr... a) This should be on openssl-dev b) its still GPLed - what did I miss? Cheers, Ben. -- http://www.apache-ssl.org/ben.html http://www.thebunker.net/ There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit. - Robert Woodruff __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: Speaking of shared secrets
On Sun, Jul 14, 2002 at 11:56:19AM +0100, Ben Laurie wrote: Richard Levitte - VMS Whacker wrote: In message [EMAIL PROTECTED] on Tue, 9 Jul 2002 11:43:04 +0300, Vadim Fedukovich [EMAIL PROTECTED] said: vf please consider to include this code into distribution Thanks and forgive me for being a nuisance... Errr... a) This should be on openssl-dev This discussion was started on -users. Anyway, I'm ready to re-send it to -dev, in case b) is clear already b) its still GPLed - what did I miss? GPL was replaced in the most advanced variant (get shares of product) on July, 9. Yes, GPL is still mentioned, as diff output. Any problem with this? sorry for confusion, Vadim Cheers, Ben. -- http://www.apache-ssl.org/ben.html http://www.thebunker.net/ There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit. - Robert Woodruff -- Naina library: http://www.unity.net/~vf/naina_r1.tgz __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
Re: RSA public and private key lengths (newbie question)
Hi, Thanks a lot for the reply. I have one more question. The private key contains all the RSA key data whereas the public key contains just the public components. So yes, this is normal. Cheers, Geoff Since public key contains only the public components is it possible to encrypt a message using RSA_public_encrypt() with a RSA struct having just the public key i.e. RSA struct obtained from rsa = d2i_RSAPublicKey(..) Thanks, Manish -- Manish Chablani ([EMAIL PROTECTED]), Graduate Student, Computer Science Department, Indiana University -- __ OpenSSL Project http://www.openssl.org User Support Mailing List[EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]