Activar módulo SSL desde Webmin:
https://localhost:10000/
Servidores / Servidor web Apache / Configuración Global / Configure Apache Modules
Marcar ssl
Pulsar botón ===> Enabled Selected Modules
Crear host virtual
sudo mkdir -p /var/www/ssl/htdocs
sudo gedit /var/www/ssl/htdocs/index.html
<html>
<head>
<title>Bienvenido al servidor seguro Apache SSL</title>
</head>
<body>
<h1>Servicios en RED</h1>
<h2>ai1pc100</h2>
</body>
</html>
Webmin / Servidor Web Apache / Create Virtual Host
Puerto 443
Raíz de Documento /var/www/ssl/htdocs
Imágenes integradas 1
Pulsar botón ===> Crear Ahora
Obtención del certificado:
Comando:
wget http://librarian.launchpad.net/7477840/apache2-ssl.tar.gz
Descomprimir el fichero descargado.
tar xzvf apache2-ssl.tar.gz
apache2-ssl-certificate
ssleay.cnf
sudo cp ssleay.cnf /usr/share/apache2/
sudo cp apache2-ssl-certificate /usr/sbin
sudo mkdir /etc/apache2/ssl
sudo apache2-ssl-certificate
creating selfsigned certificate
replace it with one signed by a certification authority (CA)
enter your ServerName at the Common Name prompt
If you want your certificate to expire after x days call this programm
with -days x
Generating a 1024 bit RSA private key
................++++++
.....++++++
writing new private key to '/etc/apache2/ssl/apache.pem'
-----
Instalar el certificado:
/etc/apache2/ssl$ sudo mkdir miCA
/etc/apache2/ssl$ sudo mkdir miCA/private
/etc/apache2/ssl$ sudo cp apache.pem miCA/private/cakey.pem
/etc/apache2/ssl$ sudo cp apache.pem miCA/cacert.pem
sudo gedit miCA/serial
01
No hay comentarios:
Publicar un comentario