#curl -w certs https://daniel.haxx.se/blog/2022/12/28/curl-w-certs/ - curl can now output the server certificates in PEM format
curl -w certs | daniel.haxx.se

@bagder I remember trying to wrap my head around openssl command to extract certificates for some script once. This will make it so much easier/cleaner ;D thank you