$filepath是apiclient_cert_path $str = openssl_x509_parse(file_get_contents($filepath)); return $str['serialNumberHex'];