Sign up ×
Server Fault is a question and answer site for 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

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: :


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

share|improve this answer

Your Answer


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.