You want to renew / change your SSL certificate on your Elastix box:
[root@localhost ~]# cd /
[root@localhost /]# mkdir /etc/httpd/ssl
[root@localhost /]# cd /etc/httpd/ssl
[root@localhost ssl]# clear
[root@localhost ssl]# openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/httpd/ssl/localhost.key -out /etc/httpd/ssl/localhost.crt
Generating a 2048 bit RSA private key
……………………..+++
……………………………………………………………….+++
writing new private key to ‘/etc/httpd/ssl/localhost.key’
—–
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‘.’, the field will be left blank.
—–
Country Name (2 letter code) [GB]:RO
State or Province Name (full name) [Berkshire]:Bucharest
Locality Name (eg, city) [Newbury]:Bucharest
Organization Name (eg, company) [My Company Ltd]:PBNET
Organizational Unit Name (eg, section) []:NOC
Common Name (eg, your name or your server’s hostname) []:sub.domain.com
Email Address []:yourmail@yourdomain.com
Place your private key in the following folder
/etc/pki/tls/private
Place your certificate in the following folder
/etc/pki/tls/certs
Place the CA bundle (if you have it) in
/etc/pki/CA/private
Edit the apache SSL configuration (not needed)
/etc/httpd/conf.d/ssl.conf
change the servername to the one you registering the certificate for.
Restart httpd -> /etc/init.d/httpd restart