documentation/description of RSA PEM file format used by OpenSSL

2009-02-05 Thread Tomasz Kaźmierczak
= PEM_read_RSAPublicKey(pubKeyFile, NULL, NULL, NULL); privKey = PEM_read_RSAPrivateKey(privKeyFile, NULL, NULL, NULL); Tomasz Kaźmierczak __ OpenSSL Project http://www.op

Re: documentation/description of RSA PEM file format used by OpenSSL

2009-02-06 Thread Tomasz Kaźmierczak
Thanks for the link, but I've already seen that, and unfortunately it didn't help... When I open the PEM files with keys in a plain text editor, the contents are different than what's shown on the linked page. In stead of: -BEGIN RSA PRIVATE KEY- Proc-Type: 4,ENCRYPTED DEK-Info: DES-EDE

Re: documentation/description of RSA PEM file format used by OpenSSL

2009-02-06 Thread Tomasz Kaźmierczak
#1 RSA key structure which contains private exponent, public exponent, and modulus. -Kyle H On Fri, Feb 6, 2009 at 9:34 AM, Tomasz Kaźmierczak wrote: Thanks for the link, but I've already seen that, and unfortunately it didn't help... When I open the PEM files with keys in a plain text edit

Re: documentation/description of RSA PEM file format used by OpenSSL

2009-02-06 Thread Tomasz Kaźmierczak
Ok. Thanks for the answers. I'll try with this information. Regards, Tomasz Kaźmierczak Dr. Stephen Henson pisze: On Fri, Feb 06, 2009, Tomasz Kaźmierczak wrote: Ok. And it is of course base64 encoded, right? And what about the public key (-BEGIN RSA PUBLIC KEY-)? It looks

Re: documentation/description of RSA PEM file format used by OpenSSL

2009-02-10 Thread Tomasz Kaźmierczak
I've managed to base64 decode a public key (at least I think so;). Now I'm trying to understand how to interpret the key data. I've found the definitions of RSAPublicKey and RSAPrivateKey structures (in the "PKCS #1: RSA Cryptography Standard"), but there is no information about what are the lengt

Re: documentation/description of RSA PEM file format used by OpenSSL

2009-02-11 Thread Tomasz Kaźmierczak
documents published by the ITU is like trying to wikipath through 40 links to get to the information you're looking for. I wholeheartedly recommend staying away from them unless you absolutely need them. -Kyle H On Tue, Feb 10, 2009 at 2:46 PM, Tomasz Kaźmierczak wrote: I've manage

Re: documentation/description of RSA PEM file format used by OpenSSL

2009-02-14 Thread Tomasz Kaźmierczak
s) and the recommendation X.690 (for DER/ASN.1 encoding). Regards, Tomasz Kaźmierczak Kyle Hamilton pisze: For information on how they're encoded, please see ITU recommendation X.690 (DER). The full documentation on ASN.1 (the notation language) can be found in ITU recommendation X.680; y