Ssl view key
ssl_view_key¶
Display the decoded components of an RSA private key and verify its consistency.
Arguments¶
- $1 (string): PEM private key file
Exit codes¶
- 0: Key is consistent
- 1: No input provided or key check failed
Output on stdout¶
- Decoded key components (modulus, public exponent, etc.)
ssl_view_key_modulus¶
Print the SHA-256 hash of the public key modulus from a private key. Used to verify that a key and its corresponding certificate share the same modulus.
Arguments¶
- $1 (string): PEM private key file
Exit codes¶
- 0: Success
- 1: No input provided
Output on stdout¶
- SHA-256 hash of the modulus