This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="page-overlay-wrapper" *ngIf="showSpinner"> | |
<div class="bee-spinner"></div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use like ./certs.sh www.google.com | |
#!/bin/bash | |
certs=`openssl s_client -servername $1 -host $1 -port 443 -showcerts </dev/null 2>/dev/null | sed -n '/Certificate chain/,/Server certificate/p'` | |
rest=$certs | |
while [[ "$rest" =~ '-----BEGIN CERTIFICATE-----' ]] | |
do | |
cert="${rest%%-----END CERTIFICATE-----*}-----END CERTIFICATE-----" | |
rest=${rest#*-----END CERTIFICATE-----} | |
echo `echo "$cert" | grep 's:' | sed 's/.*s:\(.*\)/\1/'` |