Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i'm looking for a way to export my openssl certificate (the public part) used by apache2 (.pem file) to import it to an android device's credential storage (Settings menu> Security > Credential storage > Install from device storage) as explained here http://davdroid.bitfire.at/configuration#c77

what's the proper openssl command line to export it in the desired format (DER)?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

OpenSSL maintains a hints page for this:

https://support.ssl.com/Knowledgebase/Article/View/19/0/der-vs-crt-vs-cer-vs-pem-certificates-and-how-to-convert-them :

PEM to DER

openssl x509 -in cert.crt -outform der -out cert.der

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.