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

Support for security such as Firewalls and securing linux
Post Reply
WHLeong
Posts: 2
Joined: 2019/09/09 07:51:28

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

Post by WHLeong » 2019/09/20 03:23:52

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

joebeasley3rd
Posts: 4
Joined: 2014/01/10 20:17:50

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

Post by joebeasley3rd » 2019/09/24 00:41:53

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

WHLeong
Posts: 2
Joined: 2019/09/09 07:51:28

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

Post by WHLeong » 2019/09/24 08:45:20

Hi.

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

User avatar
TrevorH
Forum Moderator
Posts: 27127
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

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

Post by TrevorH » 2019/09/25 20:51:46

httpd.conf is the wrong place for it. The mod_ssl package sets it up from /etc/httpd/conf.d/ssl.conf.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Security Support”