1. 导入证书到个人计算机中

2. 获取证书
2. 获取证书
private static X509Certificate2 GetSentosaCertificate()
{
X509Store userCaStore = new X509Store(StoreName.My, StoreLocation.LocalMachine);
try
{
userCaStore.Open(OpenFlags.ReadOnly);
X509Certificate2Collection certificatesInStore = userCaStore.Certificates;
X509Certificate2Collection findResult = certificatesInStore.Find(X509FindType.FindBySubjectName, "*.sentosa.com.sg", true);
X509Certificate2 clientCertificate = null;
if (findResult.Count == 1)
{
clientCertificate = fin