User Tools

Site Tools


howtos:convert_between_der_and_pem

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howtos:convert_between_der_and_pem [d/m/Y H:i] (current)
Line 1: Line 1:
 +To convert a certificate from PEM to DER:
 +<​code>​
 +openssl x509 -in input.crt -inform PEM -out output.crt -outform DER
 +</​code>​
  
 +To convert a certificate from DER to PEM:
 +<​code>​
 +openssl x509 -in input.crt -inform DER -out output.crt -outform PEM
 +</​code>​
 +
 +To convert a key from PEM to DER:
 +<​code>​
 +openssl rsa -in input.key -inform PEM -out output.key -outform DER
 +</​code>​
 +
 +To convert a key from DER to PEM:
 +<​code>​
 +openssl rsa -in input.key -inform DER -out output.key -outform PEM
 +</​code>​
howtos/convert_between_der_and_pem.txt · Last modified: d/m/Y H:i (external edit)