openssl-cli
Installation
SKILL.md
Identity
| Property | Value |
|---|---|
| Binary | openssl |
| Config | /etc/ssl/openssl.cnf (rarely edited directly) |
| Logs | No persistent logs — output to terminal |
| Type | CLI tool |
| Install | apt install openssl / dnf install openssl (pre-installed on most distros) |
Key Operations
| Task | Command |
|---|---|
| Inspect a PEM certificate | openssl x509 -in cert.pem -text -noout |
| Check expiry date only | openssl x509 -in cert.pem -enddate -noout |
| Check live server certificate | echo Q | openssl s_client -connect host:443 -servername host 2>/dev/null | openssl x509 -text -noout |
| Show certificate chain from server | echo Q | openssl s_client -connect host:443 -servername host -showcerts 2>/dev/null |
| Generate RSA private key (4096-bit) | openssl genrsa -out key.pem 4096 |
Related skills