No signatures could be verified because the certificate chain contains only the end entity certificate and it is not self-signed.
X509_V_ERR_UNABLE_TO_VERIFY_LEAF_SIGNATURE
openssl No signatures could be verified because the certificate chain contains only the end entity certificate and it is not self-signed.