コード例 #1
0
        private X509Certificate2 ChooseCertificate()
        {
            X509Certificate2 cert = FindCertificate();

            if (cert == null)
            {
                CsEncrypt csEncrypt = new CsEncrypt(AzureTool.GetAzureSdkBinDirectory());
                csEncrypt.CreateCertificate();
                cert = FindCertificate();
            }
            return(cert);
        }
コード例 #2
0
 private X509Certificate2 ChooseCertificate()
 {
     X509Certificate2 cert = FindCertificate();
     if (cert == null)
     {
         CsEncrypt csEncrypt = new CsEncrypt(AzureTool.GetAzureSdkBinDirectory());
         csEncrypt.CreateCertificate();
         cert = FindCertificate();
     }
     return cert;
 }