Using SSL Certificate in CentOS 6 Apache Environment

Using SSL Certificate in CentOS 6 Apache Environment

condition:
VPS or Dedicated Server
CentOS 6 or later, with Apache installed. Memory: 512MB minimum

Installation steps:
1. Install Mod SSL
yum install mod_ssl

2. Create a directory to store certificates
mkdir /etc/httpd/ssl

3. Create a self-signed certificate
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/httpd/ssl/apache.key -out /etc/httpd/ssl/apache.crt

4. Create an SSL certificate
nano /etc/httpd/conf.d/ssl.conf
Find and replace it with ServerName example.com:443. Note that example.com is the domain name you want to encrypt.
The next 3 lines should be in the following format:
SSLEngine on
SSLCertificateFile /etc/httpd/ssl/apache.crt
SSLCertificateKeyFile /etc/httpd/ssl/apache.key

5. Restart Apache service
/etc/init.d/httpd restart

Now, you can visit, for example, https://zhujiwiki.com/

via: firstchoicehosting.co.uk

<<:  AlphaRacks: $10/year/2 CPUs/256MB/25GB/500GB/1 IP/OpenVZ

>>:  VPSSIM: Nginx – PHP-FPM – MariaDB one-click installation package

Recommend

PieLayer: VPS starting at $10, with locations in Germany, France, etc.

PieLayer, old and stable. The latest offers are a...

Polish domain name registrar AZ.PL domain name registration tutorial

The AZ.PL domain name is low in price, faces the ...

Tencent launches free 1-year GeoTrust DV SSL certificate

Address: https://console.qcloud.com/ssl It does n...

ShineServers: $35/month/X3430/16GB memory/500GB space/25TB traffic/Netherlands

ShineServers, a Dutch hosting provider, has its o...

Rebel Hosting: $25/month/8GB RAM/120GB hard drive/10TB bandwidth/California

Rebel Hosting, a US hosting provider, registered ...

NameCheap: Domain transfer discount com $4.88/year, net $5.94/year

NameCheap, the latest domain name transfer discou...

Unicorn Card: card issuing program, open source, based on Laravel

Function : 1. Support two functions: automatic ca...

$10.84/month/5G space/500G traffic enterprise hosting—— SimplexWebs

SimplexWebs is an American hosting company founde...