Certificados SSL 2

De Slacam_Wiki
Revisão de 22h51min de 10 de outubro de 2009 por Machado (Discussão | contribs)

Ir para: navegação, pesquisa

Como criar um certificado ssl autoassinado no apache

How to - CentOS - Apache server with SSL

Most people are finding problems with CentOS , making it https(Secure Socket Layer) web server. CentOS is open source Linux project supported by Redhat. I am configuring machine, making CentOS apache server with SSL. I did google but couldn't find enough information about how to make apache+ssl in CentOS.


CentOS has diffrent configuration for ssl and all certificate generation configuration files have been moved to /etc/pki/tls dir.

Here are the steps to make CentOS apache+ssl (Self-signed certificate):

  1. go to /etc/pki/tls/certs
  2. make mycert.pem
  3. Enter the information about country,state,city,host name etc, your certificate and key has been created .
   3.1. Na pasta /etc/pki/tls crie um link simbolico para "ln -s certs/mycert.pem mycert.pem"
  4. now go to /etc/httpd/conf.d/ssl.conf and change..
    SSLCACertificateFile /etc/pki/tls/certs/mycert.pem
    SSLCACertificateKeyFile /etc/pki/tls/mycert.pem
  5. save changes.
  6. on shell prompt service httpd start

thats it!!!


Your apache web server with ssl start working.

to check that whether ssl is working or not, do https://localhost and you prompted with security alert window. or netstat -an|grep 443 , you will find ::443 listening , that is ssl listening.