On Thu, Mar 29, 2007, David Schwartz wrote:

> 
> > What is the *.dat format? How does it differ from pem and der formats?
> > How do we generate one with OpenSSL?
> 
> I would suggest reading the server's documentation and seeing what format it
> wants its key in. Alternatively, you could try various different formats to
> see what works.
> 

I'd also suggest looking at the file contents. If it looks like base64 data of
the form:

-----BEGIN XXX-----
<base64 stuff>
-----END XXX-----

Where XXX is some string such as "RSA PRIVATE KEY" then it is probably PEM
format.

If the file looks like binary data then try:

openssl asn1parse -inform DER -in key.dat

if you get errors then it may be some proprietary format and you are out of
luck. Otherwise you might want to try the pkcs8 or pkcs12 utilities on it.

If you can generate a test key you could send that as an attachment to see if
anyone recognizes the format.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to