我必须编写一个工具来验证x509证书是否有效(input=cert path/subject和password)。我该怎么做?我对证书不太了解… 最佳答案 看看X509Certificate2.Verify()