Questions tagged [der]

DER stands for Distinguished Encoding Rules.

5 questions
2
votes
1 answer

OpenSSL encrypt DER format private key

When converting a password-protected PEM/PKCS1-encoded private key to DER format one is not able to encrypt the key, OpenSSL automagically asks for the password and writes the plain-text key in the output file. However, I understand that…
Rob
  • 131
  • 4
1
vote
1 answer

converting just a public key from PEM to DER using openssl

There are plenty of instructions for converting PEM certificates to DER which also pop up when looking for ways to convert public keys. These are among the options offered: openssl x509 -in cert.pem -out cert.der openssl rsa -in cert.pem -out…
Banyoghurt
  • 41
  • 6
1
vote
1 answer

How do I verify that an ssh public/private keypair go together, is it different for openssl and ssh-key generated keys?

Generating a Private Key... $ openssl genrsa -out ./oci_api_key.pem 2048 Generate a Public Key...from the private key: I'm trying to generate a public key from a private key in PEM format (the Base64 of a DER) by running: $ openssl rsa -pubout -in…
leeand00
  • 1,297
  • 1
  • 13
  • 21
0
votes
1 answer

Generating a DER-encoded DSA public key of a particular file size

I am reverse engineering a binary that contains a raw, DER-encoded X.509 certificate containing a DSA public key. I want to replace this certificate with one that I have generated so that I have access to the private key. Due to this certificate…
senz
  • 1
0
votes
1 answer

How to add subject alternative name when converting PEM certificate to DER format?

Is it possible to add a subject alternative name when converting PEM certificate to DER format. openssl x509 -outform der -in Certificate.pem -out Certificate.der -extensions SAN -subject-alternative-name 'alternative name' If possible, so how to…
Chedy2149
  • 103
  • 5