The following describes how the openssl tool can be used to verify the platform certificate through the certificate trust chain. First, download the platform certificate trust chain CertTrustChain.p7b from the WeChat Pay merchant platform and convert it to the pem certificate format.  1openssl pkcs7 -print_certs -in CertTrustChain.p7b -inform der -out CertTrustChain.pem
2 Then, -CAfile file file will specify the trusted certificate to verify the downloaded platform certificate.  1openssl verify -verbose -CAfile ./CertTrustChain.pem ./WeChatPayPlatform.pem
2 |