Esempio n. 1
0
        // [Fact]
        public async Task B()
        {
            var privateKey = RSA.Create(RSAPrivateKey.Decode(TestData.PrivateRSA256KeyText));

            var client = new AcmeClient(privateKey, directoryUrl: "https://acme-staging-v02.api.letsencrypt.org/directory");

            var accountUrl = await client.CreateAccountAsync(new CreateAccountRequest(termsOfServiceAgreed : true, new[] {
                "mailto:[email protected]"
            }, false));

            throw new Exception(JsonObject.FromObject(new { accountUrl }).ToString());
        }