Blame

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