示例#1
0
        public async Task ACME_Test_05_NewKey()
        {
            AcmeAccount Account = await this.client.GetAccount();

            await Account.NewKey();

            CspParameters CspParams = new CspParameters()
            {
                Flags            = CspProviderFlags.UseMachineKeyStore,
                KeyContainerName = directory
            };

            using (RSACryptoServiceProvider RSA = new RSACryptoServiceProvider(4096, CspParams))
            {
                RSA.ImportParameters(this.client.ExportAccountKey(true));
            }
        }
示例#2
0
        public async Task ACME_Test_05_NewKey()
        {
            AcmeAccount Account = await this.client.GetAccount();

            await Account.NewKey();
        }