Blame

886b48 Steven Anderson 2024-12-17 19:30:22 1
# openssl
2
3
#### Read Certificate
4
openssl x509 -text -noout -in certificate.crt
5
6
#### View Certificate Information
7
A small script to view certificate information on a website.
8
```sh
9
#!/usr/bin/env sh
10
11
url=$1
12
13
if [ -z "${url}" ]; then
14
echo "You need to provide a url"
15
exit 1
16
fi
17
18
echo | openssl s_client -showcerts -servername "$url" -connect "$url":443 2>/dev/null | openssl x509 -inform pem -noout -text
19
```