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

ปุ่มแปลไทยจะเปิดบทความผ่าน Google Translate เพื่อแปลอัตโนมัติ โดยคงโค้ดและคำสั่งไว้ตามต้นฉบับ

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

Confirm the host, shell and access role. Replace sample names, paths, domains and interfaces with approved targets. These are diagnostic commands; assess policy and workload impact before making changes.

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

Read the result

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.

Resolve and verify

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