Hello,
I have configured https site with IP with self signed certificate. Can some one help me in changing the IP with my own defined url name.
Ex: https://100.100.100.100:8443 to https://abc.com
# generate mysite.coms's RSA keypair with 3072 bits and encrypt it openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:3072 -aes-128-cbc -out mysite_key.pem # generate a certificate signing request. Used FQDN of server (i.e. mysite.com). Use email with dot to prevent spam. Didn't include an "extra" password openssl req -new -key mysite_key.pem -sha256 -days 365 -out mysite_csr.pem # Remove pass-phrase from the key cp mysite_key.pem mysite_key.pem.tmp openssl rsa -in mysite_key.pem.tmp -out mysite_key.pem rm -f mysite_key.pem.tmp # sign the certificate with the key itself. Skip this step if using a CA openssl x509 -req -in mysite_csr.pem -signkey mysite_key.pem -sha256 -days 365 -out mysite_crt.pem # Copy the files to the correct locations (don't move since it will cause problems with selinux). Be sure to keep at read only by root cp mysite_key.pem /etc/pki/tls/private/mysite_key.pem cp mysite_csr.pem /etc/pki/tls/private/mysite_csr.pem cp mysite_crt.pem /etc/pki/tls/certs/mysite_crt.pem rm -f mysite_key.pem rm -f mysite_csr.pem rm -f mysite_crt.pem # update /etc/httpd/conf.d/ssl.conf as follows: # SSLCertificateFile /etc/pki/tls/certs/mysite_crt.pem # SSLCertificateKeyFile /etc/pki/tls/private/mysite_key.pem /etc/init.d/httpd restart
$ BUGZILLAURL="https://mylocalserver.com/bugzilla" $ PROJECTNAME="mybugs" $ echo "$BUGZILLAURL/$PROJECTNAME" https://mylocalserver.com/bugzilla/mybugs
$ grep -i "urlbase" data/params 'docs_urlbase' => 'docs/%lang%/html/', 'urlbase' => '', 'webdotbase' => 'http://www.research.att.com/~north/cgi-bin/webdot.cgi/%urlbase%',
$ grep -i "'urlbase'" data/params 'urlbase' => '',