Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleCheck Certificate
collapsetrue
root@dev-robot-robot-56bcbffb5d-jlvgj:~# cat verify_cert.sh 
#!/bin/bash
for server in aaf-service.onap:8100 aai.onap:8443 deployment-handler.onap:8443 dmaap-bc.onap:8443 dmaap-dr-node.onap:8443 dmaap-dr-prov.onap:8443 vid.onap:8443 portal-app.onap:8443 sdc-fe.onap:9443 sdc-be.onap:8443 sdnc.onap:8443 clamp.onap:8443 pap.onap:8443
do
    host=$(echo $server | cut -d ":" -f 1)
    echo host:$host
    echo | openssl s_client -showcerts -servername $host -connect $server 2>/dev/null | openssl x509 -inform pem -noout -text | grep -E "Not After|Not Before|Issuer:|Subject:"
done

...