'How to dynamically calculate and add ssl thumprint to AWS
I have the below script which can dynamically calculate github actions thumbrint certs but I don’t know how I can have it automatically add it AWS each time there is a change.I need some help please
#!/bin/bash
pulls the certificate thumbprint for the below URL dynamically URL=‘token.actions.githubusercontent.com’
openssl s_client -servername $URL -showcerts -connect $URL:443 < /dev/null 2> /dev/null | sed -n -e ‘/BEGIN/h’ -e ‘/BEGIN/,/END/H’ -e ‘$x’ -e ‘$p’ | tail +2 | openssl x509 --fingerprint --noout | sed -e “s/.*=//” -e “s/://g” | tr “ABCDEF” “abcdef”
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
