![]() If the Apache configuration file has no errors, you will get a Syntax OK message. Issue the following command to check errors.ġ1. Since we have changed the settings of the Apache Config file, we will test for the errors. It is always a good practice to check your Apache config files for any errors when you modify them. SSLCertificateKeyFile /path/to/your_private.keyġ0. SSLCertificateFile /path/to/your_domain_name.crt The parts listed in bold are the parts that must be added for SSL configuration. ![]() Following is a basic example of a virtual host configuration for SSL. If you want your website to be accessible through both protocols (https and http), copy the existing tag and change the port from port 80 to 443 as follows. Once you locate nf file, open it in the editor, and find the tag in the file.Ĩ. ![]() You can also use the following command to find nf file.ħ. Usually, you can locate this file under the /etc/httpd/ directory. The actual directory of this configuration file may be different. Move to the Apache server configuration file (nf). Open outputFileName.pem file in any text editor and copy each key make a separate text file for each certificate, including the - BEGIN RSA PRIVATE KEY - and - END RSA PRIVATE KEY - lines.Ħ. Now, we need to extract the private key and certificate file from the. On success, you will get the message MAC verified OK.ĥ. Enter the password you had set while exporting the certificate.Ĥ. While you issue this command, you will be asked for Import Password. Openssl pkcs12 -in -nocerts -out -nodesģ. Run the following OpenSSL command to create a text file with the contents of the. You will need to extract all individual certificates and private keys from the. Exporting an SSL Certificate, you will get. If not, review our article on How to export an SSL Certificate from an Apache server. We believe you have already exported the SSL Certificate from the existing Apache web server. This article will assist you in importing an SSL Certificate in Apache Server.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |