Unlike browsers that trust almost everyone, OpenSSL trusts nothing by default.
It is up to you to decide what to trust. You will need to specify something when using OpenSSL. This can be a certificate or a list of trusted certificates.
The /etc/ssl/certs contains many certificates. Using such a directory should allow checking almost everything:
openssl verify -CApath /etc/ssl/certs cert.pem
It is recommended that you reduce the number of trusted certificates to one, two, or the minimum possible.
user2350426
source share