In response to a certificate signing request, a certification authority sent a web server certificate along with the certificate of an intermediate certification authority that signed the web server certificate. What should be done with the intermediate certificate in order to use the web server certificate with Apache HTTPD?

A. The intermediate certificate should be merged with the web server's certificate into one file that is specified in SSLCertificateFile
B. The intermediate certificate should be used to verify the certificate before its deployment on the web server and can be deleted
C. The intermediate certificate should be stored in its own file which is referenced in SSLCACertificateFile
D. The intermediate certificate should be improved into the certificate store of the web browser used to test the correct operation of the web server
E. The intermediate certificate should be archived and resent to the certification authority in order to request a renewal of the certificate

题解

所谓的「certification authority」即 CA,CA 可能会有很多层,最上层的称为「Root CA」,其余的称为「Intermediate CA」。将这些 CA 按照从下到上的顺序串起来,称为「SSL Certificate Chain」。将 Cert (server certificate) 和 SSL Certificate Chain 串起来,称为「Full Certificate Chain」。

在 Apache 的设置档中,「SSLCertificateKeyFile」用来指定 Key 文件的位置,「SSLCertificateFile」用来指定 Cert (server certificate) 文件的位置。Apache 在 2.4.8 版本之前,「SSLCertificateFile」用来指定 Cert 文件的位置,「SSLCertificateChainFile」用来指定 SSL Certificate Chain 的文件位置。Apache 在 2.4.8 版本之后,「SSLCertificateFile」可直接用来指定 Full Certificate Chain 文件的位置。

所以选项「A」是正确答案。

至于「SSLCACertificateFile」,它也可以用来指定「SSL Certificate Chain」文件,只不过它应该要用在非公开的 CA(用于发行自行签署的 SSL 凭证)上。然而这题题目没有描述得很清楚,所以选项「C」也可以是正确答案。