https://rbwilson.ca/how-to-verify-certificates-with-openssl/
Anonymous
Don't force yourself or others to reimplement functionality.