Hi, everybody ...

I am looking for a way to produce an encrypted version of a private key
stored in DER format.  The commandline tool 'openssl' just offers a way to
produce encrypted keys stored in PEM format (at least according to the
help text it gives out when abused).

I generated a key without passphrase in PEM format, then encrypted it (in
PEM format) using a passphrase, then I translated the original (uncrypted)
key to DER format.  I tried to generate a crypted version in DER format
both from the uncrypted DER format version and from the crypted PEM format
version, but both ways just produced a file which did not differ from the
uncrypted DER format.

Questions:

- Is there something I don't know?  (e.g. a reason why DER files are never
  crypted or similar, but I actually _have_ such a crypted DER file from
  another source, and I need to produce one myself.)

- Does anybody know a tool to convert a PEM file to a DER file other than
  the openssl commandline tool?  Where can I get such a tool?  I even
  think that it should be possible to convert PEM to DER without knowledge
  of the used passphrase.
                                        Alfe
   ____    ________
  /___/   /___/___  http://www.cs.tu-berlin.de/~alfebtcd, Alfe @ TubMud
 /___/___/___/___   Alexander Fetke,  Bruno-Taut-Ring 5b,  12359 Berlin
/   /___/   /___    +49-30-60109906,  [EMAIL PROTECTED], +49-30-44340358


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to