Page 1 of 1

Trying to generate and install the SSL Certificate to be used for authentication when accessing CentOS 7

Posted: 2019/09/20 03:23:52
by WHLeong
Hi all.

I want to generate a ssl certificate and use this certificate for authentication to the CentOS 7 instances.
I manage to generate and signed the certificate
However, I was struck at installing the cert, as well as how to test if the certificate authentication is successful or not.
The portion that I struck at was the redirection to https:
...
sudo vi /etc/httpd/conf/httpd.conf
<VirtualHost *:80>
ServerName www.example.com
Redirect "/" "https://www.example.com/"
</VirtualHost>
...

Which part of the config file should I be looking at?
Also, how can we test for successful or failure authentication to login to the instances in the cloud?
Lastly, one thing I still don't understand is that why do I need a apache server for ssl certificate when I'm only used for mail access?
Please advise.
Many thanks.

Reference: https://medium.com/@hbayraktar/how-to-install-ssl-certificate-on-apache-for-centos-7-38c25b84d8b1

Re: Trying to generate and install the SSL Certificate to be used for authentication when accessing CentOS 7

Posted: 2019/09/24 00:41:53
by joebeasley3rd
httpd.conf. You need to configure the SSL options for the virtualhost. Found an example below. Google "Apache ssl certificate" for more info.

https://www.digicert.com/csr-ssl-instal ... penssl.htm

Re: Trying to generate and install the SSL Certificate to be used for authentication when accessing CentOS 7

Posted: 2019/09/24 08:45:20
by WHLeong
Hi.

Thanks.
Managed to settle with the cert authentication already.
Thanks.

Re: Trying to generate and install the SSL Certificate to be used for authentication when accessing CentOS 7

Posted: 2019/09/25 20:51:46
by TrevorH
httpd.conf is the wrong place for it. The mod_ssl package sets it up from /etc/httpd/conf.d/ssl.conf.