Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

Linux Server / Networking, SSH & Web Services

Inspect the certificate file a Linux service is configured to load

A renewed certificate on disk may not be the one a daemon serves, or the file may have the wrong name or validity window.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Linux server baseline · Ubuntu 24.04 LTS / RHEL 9-style systems. Use the specified distribution, init system and installed tool; service names, privileges and supported options can differ.

Start with this check

Check the computer, command shell and account permissions. Replace example names, file paths, domains and interfaces with approved values. These commands help investigate the problem. Before making changes, check the rules and the effect on running applications.

openssl x509 -in /etc/ssl/certs/app.pem -noout -subject -issuer -dates

What the results mean

With OpenSSL, this reads public certificate metadata from the selected file. It does not display a private key or prove the daemon loaded that certificate.

Fix the cause and check again

Compare the file with the service binding and the remote presented certificate, then validate the chain and controlled reload. Confirm the expected hostname works afterward.

Before changing production

Do not copy private keys into diagnostic output or remove older certificate files before checking dependent services.

Share this article

Back to all articles