Beispiel #1
0
        // [Fact]
        public async Task C()
        {
            var client = new AcmeClient(
                privateKey: RSA.Create(RSAPrivateKey.Decode(TestData.PrivateRSA256KeyText)),
                accountUrl: "https://acme-staging-v02.api.letsencrypt.org/acme/acct/5363173",
                directoryUrl: "https://acme-staging-v02.api.letsencrypt.org/directory"
                );

            var request = new CreateOrderRequest(new[] {
                new Identifier("dns", "test.accelerator.net")
            }, null, null);

            var order = await client.CreateOrderAsync(request);

            throw new Exception(JsonObject.FromObject(new { order, order.Url }).ToString());
        }