コード例 #1
0
ファイル: AcmeTests.cs プロジェクト: orf53975/IoTGateway
        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
ファイル: AcmeTests.cs プロジェクト: ikvm/IoTGateway
        public async Task ACME_Test_05_NewKey()
        {
            AcmeAccount Account = await this.client.GetAccount();

            await Account.NewKey();
        }