Commit 886b48
2024-12-17 19:30:22 Steven Anderson: initial openssl/dev/null .. ScriptFu/certificates/openssl.md | |
@@ 0,0 1,19 @@ | |
+ | # openssl |
+ | |
+ | #### Read Certificate |
+ | openssl x509 -text -noout -in certificate.crt |
+ | |
+ | #### View Certificate Information |
+ | A small script to view certificate information on a website. |
+ | ```sh |
+ | #!/usr/bin/env sh |
+ | |
+ | url=$1 |
+ | |
+ | if [ -z "${url}" ]; then |
+ | echo "You need to provide a url" |
+ | exit 1 |
+ | fi |
+ | |
+ | echo | openssl s_client -showcerts -servername "$url" -connect "$url":443 2>/dev/null | openssl x509 -inform pem -noout -text |
+ | ``` |