Assume you have a CER is an DER encoded X.509 certificate in binary form, and you want to have a PEM-encoded X.509 Certificate file for Apache.
The following command may help:
1 |
openssl x509 -inform DER -in certfile.cer -out certfile.crt |
Apache/mod_ssl request PEM-encoded X.509 Certificate file
Reference: http://www.modssl.org/docs/2.8/ssl_reference.html#ToC10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
SSLCertificateFile Name: SSLCertificateFile Description: Server PEM-encoded X.509 Certificate file Syntax: SSLCertificateFile filename Default: None Context: server config, virtual host Override: Not applicable Status: Extension Module: mod_ssl Compatibility: mod_ssl 2.0 This directive points to the PEM-encoded Certificate file for the server and optionally also to the corresponding RSA or DSA Private Key file for it (contained in the same file). If the contained Private Key is encrypted the Pass Phrase dialog is forced at startup time. This directive can be used up to two times (referencing different filenames) when both a RSA and a DSA based server certificate is used in parallel. Example: SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt |