How to renew public website certificate

Published Dec. 13, 2024, 6:24 a.m. by cloudblog

Public URL certificate renew is the simple process where we need root certificate , bundle certiticate or chain cerrtificate in case any and the private key. All these keys has to be placed on the VM ( appplication node).

Below are the example of apaceh web server cerificate renew say appsolworld.com.

1. Get certificate from the any vendor in this case hioxinda.com  ( provide the doamin details)

2. It is automated process so will get the CSR and private key generated.

3. In validation process choose domain validation and vendor will provide the CNAME record details.

4. Go to your cloud or hosting vendor and open DNS management add the given CNAME record there in order to validate.

5. Validation will be successfulll post that vendor will share the zip and the certificates.

6. Copy domain_cert as server.crt and domain_bundle.key as CAbundle.crt

7 Lastly copy the private key durung CSR generation and save key as Apache_1024.key as per your naming convention updated on the httpd.conf.

-rw-rw-r--. 1 root root 2224 Dec 13 02:54 appsolworld_com.crt
-rw-r--r--. 1 root root 2224 Dec 13 03:02 server.crt
-rw-r--r--. 1 root root 5652 Dec 13 03:04 CAbundle.crt
[root@appsolworld cert]#
 

These are the path configured in the appsolworld.conf

 

SSLCertificateFile "/etc/httpd/cert/server.crt"
SSLCertificateKeyFile "/etc/httpd/cert/apache_1024.key"
SSLCertificateChainFile "/etc/httpd/cert/CAbundle.crt"
 

Stop and start appache services and validate the certificate.

Thank you!!

[root@appsolworld cert]# systemctl stop httpd
[root@appsolworld cert]# systemctl start httpd
[root@appsolworld cert]# systemctl status httpd
● httpd.service - The Apache HTTP Server
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2024-12-13 03:08:25 GMT; 10s ago
     Docs: man:httpd(8)
           man:apachectl(8)
  Process: 20371 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
  Process: 14560 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
 Main PID: 20493 (httpd)
   Status: "Total requests: 0; Current requests/sec: 0; Current traffic:   0 B/sec"
    Tasks: 6
   Memory: 8.3M
   CGroup: /system.slice/httpd.service
           ├─20493 /usr/sbin/httpd -DFOREGROUND
           ├─20494 /usr/sbin/httpd -DFOREGROUND
           ├─20495 /usr/sbin/httpd -DFOREGROUND
           ├─20496 /usr/sbin/httpd -DFOREGROUND
           ├─20497 /usr/sbin/httpd -DFOREGROUND
           └─20498 /usr/sbin/httpd -DFOREGROUND
 

 

Share this post

Similar posts

There are no similar posts yet.

0 comments

There are no comments.

Add a new comment