How do I export my certificate from Apache?
- Category : SSL Installation
- Posted on : Mar 17, 2020
- Views : 700
- By : HostSEO
It is pretty easy to export a certificate from Apache if you have root access to the server.
In fact you just need to find three files: the certificate issued for your domain name, appropriate Private Key and CA bundle on the server where the certificate is installed.
If you are not sure about the names of the files coming with the certificate, you can locate them by checking your VirtualHost file. If the certificate is installed, you should have the following lines in your VirtualHost:
     SSLCertificateFile "/*path_to_your_certificate*/*.crt"
     SSLCertificateKeyFile "/*path_to_your_Pivate_Key*/*.key"
     SSLCACertificateFile "/*path_to_your_CA_bundle*/*.crt"
The lines have paths to the required files as values, therefore, you can find their location.
Afterwards, simply copy all the three files and upload them to the exportation destination.
In case you are going to install the certificate on a Microsoft server or Tomcat, you may export it in the required PKCS12 format using the openssl command:
openssl pkcs12 -export -out certificate.pfx -inkey privateKey.key -in certificate.crt -certfile CACert.crt
where certificate.crt is the certificate issued for your domain, CACert.crt is the chain of CA certificates, and privateKey.key is your private key. In the output you will have the certificate as a .pfx file in the PKCS12 format required for installation on a Microsoft server or Tomcat.
Categories
- cPanel Question 47
- cPanel Software Management 29
- cPanel Tutorials 13
- Development 29
- Domain 13
- General 19
- Linux Helpline (Easy Guide) 156
- Marketing 47
- MySQL Question 13
- News 2
- PHP Configuration 14
- SEO 4
- SEO 42
- Server Administration 84
- SSL Installation 54
- Tips and Tricks 24
- VPS 3
- Web Hosting 44
- Website Security 22
- WHM questions 13
- WordPress 148
Subscribe Now
10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!Archive Calendar
Sat | Sun | Mon | Tue | Wed | Thu | Fri |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
Recent Articles
-
Posted on : Sep 17
-
Posted on : Sep 10
-
Posted on : Aug 04
-
Posted on : Apr 01
Tags
- ts
- myisam
- vpn
- sql
- process
- kill
- tweak
- server load
- attack
- ddos mitigation
- Knowledge
- layer 7
- ddos
- webmail
- DMARC
- Development
- nginx
- seo vpn
- Hosting Security
- wireguard
- innodb
- exim
- smtp relay
- smtp
- VPS Hosting
- cpulimit
- Plesk
- Comparison
- cpu
- encryption
- WHM
- xampp
- sysstat
- optimize
- cheap vpn
- php-fpm
- mariadb
- apache
- Small Business
- Error
- Networking
- VPS
- SSD Hosting
- Link Building
- centos
- DNS
- optimization
- ubuntu