Пример #1
0
        static KeyVaultHelper InitKeyVaultHelper()
        {
            string           clientId    = ConfigHelper.KeyVaultConfig["clientId"];
            string           thumbprint  = ConfigHelper.KeyVaultConfig["clientCertificateThumbprint"];
            X509Certificate2 certificate = CertificateHelper.GetCertificate(thumbprint, StoreName.My, StoreLocation.CurrentUser);

            return(new KeyVaultHelper(clientId, certificate));
        }