Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is SSLCertificateKeyFile needed for Apache?

What's the technical reason that SSLCertificateKeyFile is needed (the private key)? Where is that used and for what?

like image 287
Tower Avatar asked Jan 27 '11 09:01

Tower


People also ask

What is Sslcertificatekeyfile?

If SSLCertificateChainFile is specified, the webserver will attach the associated certificates (to build up a whole chain to a Root CA) to the webserver certificate.

How does SSL work with Apache?

SSL works through a system of security keys and digital certificates. A digital certificate establishes a site and server as legitimate in terms of SSL security. Managers can acquire an Apache SSL certificate from various sources and install it by copying certificate files to the server and configuring accordingly.

Why is OpenSSL needed?

Why do you need OpenSSL? With OpenSSL, you can apply for your digital certificate (Generate the Certificate Signing Request) and install the SSL files on your server. You can also convert your certificate into various SSL formats, as well as do all kind of verifications.

Is there difference startup between a non SSL aware Apache and an SSL aware Apache?

Is there a difference on startup between a non-SSL-aware Apache and an SSL-aware Apache? Yes. In general, starting Apache with mod_ssl built-in is just like starting Apache without it. However, if you have a passphrase on your SSL private key file, a startup dialog will pop up which asks you to enter the pass phrase.


1 Answers

The SSL certificate file contains the X.509 certificate (which, in turn, contains a public key used for encryption). The SSL Certificate Key File contains the private key corresponding to the public key in the certificate. In order for the webserver to encrypt and decrypt traffic, it must have both the public key (certificate) and corresponding private key. Apache, unlike a lot of other server products, stores the key and certificate in separate files. Java-based products, for example, typically use Java KeyStore files, which are an encrypted database containing both the certificate and private key.

like image 172
Shadowman Avatar answered Sep 23 '22 03:09

Shadowman