Re: A PKI in a web page

2009-09-10 Thread Mounir IDRASSI
operation. I have been using it for a year now and it was easy to modify it to accommodate my own requirements (like supporting SHA1 instead of the default MD5 and adding new templates). I hope it can be useful for you as it is for me. Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr jehan proca

Re: Read DER-encoded RSA public key in memory?

2009-07-20 Thread Mounir IDRASSI
Yes, d2i_PUBKEY is sufficient. -- Mounir IDRASSI IDRIX http://www.idrix.fr Jeremy R. wrote: Thanks. I switched to using d2i_PUBKEY (it really is hard-coded, so I don't think there's a reason to use BIO – if I'm mistaken, please tell me) and it now returns a valid address in

Re: Read DER-encoded RSA public key in memory?

2009-07-20 Thread Mounir IDRASSI
g the same variables of your code : BIO* keyBio = BIO_new_mem_buf(TESTING_PUBLIC_KEY, sizeof(TESTING_PUBLIC_KEY)); public_key = d2i_PUBKEY_bio(keyBio, NULL); That's it! I hope this will help. Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr Jeremy R. wrote: I'm trying to make a sim

Re: Convert pem key to ssh-rsa format

2009-06-19 Thread Mounir IDRASSI
Hi, I have already posted to this list a C code of a program that converts from an OpenSSL public key to an OpenSSH public key. You can grab the code from the following link and compile it yourself : http://www.idrix.fr/Root/Samples/pubkey2ssh.c Cheers, -- Mounir IDRASSI IDRIX http

Re: Loading a public RSA key from a DER file

2009-05-08 Thread Mounir IDRASSI
: it can hold any public key (RSA, DSA, ECC) as it contains a field indentifing the corresponding algorithm. It's described in the PKCS#6 spec from RSA, section A.1, ftp://ftp.rsasecurity.com/pub/pkcs/ascii/pkcs-6.asc. Hope this will help. Mounir IDRASSI IDRIX http://www.idrix.fr Séba

Re: Loading a public RSA key from a DER file

2009-05-06 Thread Mounir IDRASSI
Hi, Your file pk.der contains a public key encoded as a SubjectPublicKeyInfo and NOT as a PKCS#1 encoding. So, you should use the function d2i_RSA_PUBKEY instead of d2i_RSAPublicKey in order to read the public key. Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr > Dear all, > > I a

Re: RSASSA-PSS Signature Question

2009-03-19 Thread Mounir IDRASSI
Hi, Just to confirm what Ger Hobbelt said in his previous answer: the openssl command line doesn't support RSASSA-PSS signature generation. Maybe it will be added in a future release. In the mean time, you have to use the library to perform this. Cheers, -- Mounir IDRASSI IDRIX

Re: use of OpenSSL libeay32.dll with C#

2009-02-06 Thread Mounir IDRASSI
t/projects/openssl-net Happy hacking, -- Mounir IDRASSI IDRIX http://www.idrix.fr El Habib wrote: Hi all, I am starting with openSSL and C#, and I need some help on this point if possible, I am trying to write a C# programme that uses the functions of (sign, check, hash, generate random keys, encryp

Re: Ver 0.9.8 j compiled

2009-01-20 Thread Mounir IDRASSI
Hi, If you are looking for windows binaries, you could search using Google. The first result is the following link : http://www.slproweb.com/products/Win32OpenSSL.html Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr rfx wrote: I find url to download openssl ver 0.9.8 j compiled

Re: Problem with BN_mod_exp

2009-01-17 Thread Mounir IDRASSI
the same as the output of BN_mod_exp when all inputs are initialized correctly. I didn't check the results in case you are using a little-endian representation... Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr Sargeras wrote: I'm working in a client for authentication of SRP6 an

Re: Problem with BN_mod_exp

2009-01-16 Thread Mounir IDRASSI
66694e28fdca0bb1f34fe13e3b38088180766f8cc4283ef6a9c1e427f364d7e2 in big-endian or E2D764F327E4C1A9F63E28C48C6F76808108383B3EE14FF3B10BCAFD284E6966 in little endian.as you mention it in your message. So, it's your "expected" result that is false. How did you compute this value? Cheers, -- Mounir IDR

Re: RSA signature and padding

2009-01-08 Thread Mounir IDRASSI
in my sample code. Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr Chevalier Dev wrote: Hi Mounir: Thanks a lot for the sample code, it answers all my questions! Do you know if PSS is going to be part of the next release for RSA signatures? Cheers --

Re: Extract public key from certificate

2009-01-08 Thread Mounir IDRASSI
the function "PEM_write_PUBKEY" on this pointer to save the public key to a file. Regards, -- Mounir IDRASSI IDRIX http://www.idrix.fr Vincent CLUZAUD wrote: Dear users, I want to extract public key from certificate (*.cer file) in C++ (with visual C++). In command, I can do tha

Re: RSA signature and padding

2009-01-07 Thread Mounir IDRASSI
, -- Mounir IDRASSI IDRIX http://www.idrix.fr Chevalier Dev wrote: Dear all: I have just implemented an RSA signature using openssl. What I observe is that signing the same data (a SHA-256 hash) multiple times with the same RSA key always yields the same signature. I thought the data to be signed

Re: Read a PEM

2008-12-18 Thread Mounir IDRASSI
Hi, In this case, you should post the stack trace when the crash happens: It will show us where the problem is located. Use gdb or VisualStudio for that, depending on your platform. -- Mounir IDRASSI IDRIX http://www.idrix.fr Moribius wrote: fp is not NULL; But perhaps my certificate has

Re: Read a PEM

2008-12-18 Thread Mounir IDRASSI
Hi, Another simpler possibility is that fopen is returning NULL and PEM_read_X509 crashes because fp is NULL. I suppose you already checked that... Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr Mounir IDRASSI wrote: Hi, Your code doesn't crash for me (and it should not). Do you

Re: Read a PEM

2008-12-18 Thread Mounir IDRASSI
Hi, Your code doesn't crash for me (and it should not). Do you have a stack trace of the crash? What version of openssl are you using? Can you post the pem file you are using? Maybe it has some special content encoding. Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr Moribius wrote

Re: openssl on symbian

2008-12-01 Thread Mounir IDRASSI
http://discussion.forum.nokia.com/forum/showpost.php?p=303576&postcount=12) It's two years old but I think the hints there still apply. I hope this will help. Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr On Mon, 1 Dec 2008 03:40:10 -0800, "waleed hassn" <[EMAIL PROTECTED]>

Re: Errors while building OpenSSL in Windows

2008-07-10 Thread Mounir IDRASSI
Hi, This error have been already reported. Check the following link : http://www.mail-archive.com/[EMAIL PROTECTED]/msg24173.html I'm not sure if my fix have been put into cvs. Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr On Thu, July 10, 2008 10:50 pm, Panthers Rock wrote: &g

Re: PKI Application

2008-07-06 Thread Mounir IDRASSI
You must also check for RootKits which are harder to detect and always run under an account with no privilege. As far as I am concerned, I will use Wine under Linux to try this executable. -- Mounir IDRASSI IDRIX http://www.idrix.fr On Sun, July 6, 2008 2:54 pm, Jim Lynch wrote: > Open an

Re: Please help: very urgent: Query on patented algorithms

2008-06-16 Thread Mounir IDRASSI
Hi, Use the tool Dependency Walker (http://www.dependencywalker.com/) to look at the exported functions of libeay32.dll. If it exports RC5, you will see exported symbols starting with RC5. For MDC2, you'll find symbols starting with MDC2 and etc... Cheers, -- Mounir IDRASSI IDRIX

Re: OpenSSL 0.9.8h and Win64A

2008-06-07 Thread Mounir IDRASSI
, -- Mounir IDRASSI IDRIX http://www.idrix.fr On Thu, June 5, 2008 11:47 pm, Melnick, Jeff wrote: > I've been trying to build OpenSSL 0.9.8h for WIN64A. > > I have Visual Studio 2005, SP1 and the Server 2008 SDK (6.1) on 32 bit > Windows XP. > > > > I run: > >

Re: SSL

2008-06-02 Thread Mounir IDRASSI
w SSL certificate. To find what key is Apache using, look in your httpd.conf file to see where the SSL configuration is store and there you will find the path of the SSL key and certificate. Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr On Sun, June 1, 2008 11:25 pm, Billy Chan Ting wrote: >

Re: cert already in hash table

2008-05-29 Thread Mounir IDRASSI
in the previous loop. Can you confirm that the code is really like this? Does the working application have the same code? Cheers, -- Mounir IDRASSI IDRIX http://www.idrix.fr On Thu, May 29, 2008 8:24 pm, Francis GASCHET wrote: > Sorry for the double ;-) > Hello, > > > I gettin

Re: 0.9.8h failing to build with VS 2005

2008-05-29 Thread Mounir IDRASSI
Hi, This is a bug that has been reported on openssl-dev. It's due to a bug in the file x86ms.pl responsible for the generation of MASM assembly code. To be corrected, the line 273 of this file containing "$extra" should be removed. -- Mounir IDRASSI IDRIX http

<    1   2