add: split-ssl-certs
This commit is contained in:
parent
d4757facde
commit
844c879f2d
4
bash/split-ssl-certs.sh
Executable file
4
bash/split-ssl-certs.sh
Executable file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
# split cert-chain received from server in seperate certificates
|
||||
openssl s_client -showcerts -servername someserverssniname.intra.dlr.de -connect someserver.intra.dlr.de:443 < /dev/null | sed -n -e '/BEGIN\ CERTIFICATE/,/END\ CERTIFICATE/ p' | csplit -f cert - '/-----BEGIN CERTIFICATE-----/' '{*}'
|
||||
|
Loading…
Reference in New Issue
Block a user