SSL Certificate for Free - Tech Arkit
openssl req -new \ certificate.csr
openssl rsa -in privkey.pem -out keyfile.key
openssl x509 -in certificate.csr -out cert.cert -req -signkey keyfile.key -days 365
cp cert.cert /etc/ssl/certs/server.crt
cp keyfile.key /etc/ssl/private/server.key
mkdir -p /etc/pki/tls/private/
mkdir -p /etc/pki/tls/certs/
sudo cp cert.cert /etc/pki/tls/certs/cert.crt
sudo cp keyfile.key /etc/pki/tls/private/server.key
cd /etc/httpd/conf.d/
vim ssl.conf
\VirtualHost *:443\
ServerAdmin root@localhost
ServerName TechArkit-Server.local
DocumentRoot /var/www/html
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLHonorCipherOrder on
SSLCertificateFile /etc/pki/tls/certs/arkit.com.crt
SSLCertificateKeyFile /etc/pki/tls/private/arkit.com.key
#SSLCertificateChainFile /etc/pki/tls/certs/arkit.com.csr
\/VirtualHost\
systemctl restart httpd
httpd -t
vi /etc/hosts
192.168.2.43 TechArkit-Server.local
httpd -t
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment