📅  最后修改于: 2022-03-11 14:58:39.533000             🧑  作者: Mango
$certFile = file_get_contents('/var/www/api/private_key.crt');
$keyFile = file_get_contents('/var/www/api/private.key');
$keyPassphrase = "password@2020";
$keyCheckData = array(0=>$keyFile,1=>$keyPassphrase);
$result = openssl_x509_check_private_key($certFile,$keyCheckData);