Пример #1
0
        public void CleanUp(ChallengeHandlingContext ctx)
        {
            AssertNotDisposed();
            DnsChallenge challenge = (DnsChallenge)ctx.Challenge;
            var          helper    = new OvhHelper(Endpoint, ApplicationKey, ApplicationSecret, ConsumerKey);

            helper.DeleteDnsRecord(challenge.RecordName);
        }
Пример #2
0
        public void Handle(ChallengeHandlingContext ctx)
        {
            AssertNotDisposed();
            DnsChallenge challenge = (DnsChallenge)ctx.Challenge;
            var          helper    = new OvhHelper(Endpoint, ApplicationKey, ApplicationSecret, ConsumerKey);

            helper.AddOrUpdateDnsRecord(challenge.RecordName, GetCleanedRecordValue(challenge.RecordValue));
        }