As root on the ESIA server, generate a key and certificate using the command
openssl req -new -newkey rsa:2048 -nodes -keyout ESIA.key -out ESIA.csr
Answer the questions. For the password challenge ⇒ leave blank, ENTER.
The above command has generated two files:
CSR = Certificate Signing Request
The ESIA.csr file must be certified by a certification authority in order to obtain a CRT file.
After signing your CSR file. Place your two files in the
/usr/local/esia/certs/
Then open and modify the
nano /etc/apache2/sites-enabled/esia-ssl.conf
The file contains this :
... SSLEngine on SSLCertificateFile /usr/local/esia/certs/enterprise-esia.crt SSLCertificateKeyFile /usr/local/esia/certs/enterprise-esia.key </VirtualHost>
Replace « enterprise-esia.crt » with « ESIA.crt » and « enterprise-esia.key » with « ESIA.key »
To finish, restart the apache2 service
systemctl restart apache2