From 483864045c36ca1e49834144f9ac9544f15ea999 Mon Sep 17 00:00:00 2001
From: Joe Orton
Description: | Server PEM-encoded X.509 certificate data file |
---|---|
Syntax: | SSLCertificateFile file-path |
Description: | Server PEM-encoded X.509 certificate data file or token identifier |
Syntax: | SSLCertificateFile file-path|certid |
Context: | server config, virtual host |
Status: | Extension |
Module: | mod_ssl |
Compatibility: | certid available in 2.5.1 and later. |
-This directive points to a file with certificate data in PEM format. -At a minimum, the file must include an end-entity (leaf) certificate. +This directive points to a file with certificate data in PEM format, or the certificate identifier through a configured cryptographic token. +If using a PEM file, at minimum, the file must include an end-entity (leaf) certificate. The directive can be used multiple times (referencing different filenames) to support multiple algorithms for server authentication - typically RSA, DSA, and ECC. The number of supported algorithms depends on the @@ -660,6 +661,14 @@ after the certificates using a separate key file. If the private key is encrypted, the pass phrase dialog is forced at startup time.
+As an alternative to storing certificates and private keys in
+files, a certificate identifier can be used to identify a certificate
+stored in a token. Currently, only PKCS#11 URIs are
+recognized as certificate identifiers, and can be used in conjunction
+with the OpenSSL pkcs11
engine configured with SSLCryptoDevice
. If SSLCertificateKeyFile
is omitted, the
+certificate and private key can be loaded through the single
+identifier specified with SSLCertificateFile
.
@@ -703,7 +712,12 @@ thus using a custom/suitable length.
SSLCertificateFile "/usr/local/apache2/conf/ssl.crt/server.crt"+
# Example using a PEM-encoded file. +SSLCertificateFile "/usr/local/apache2/conf/ssl.crt/server.crt" +# Example use of a certificate and private key from a PKCS#11 token: +SSLCryptoDevice pkcs11 +... +SSLCertificateFile "pkcs11:token=My%20Token%20Name;id=45"