예제 #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));
        }