Giter Site home page Giter Site logo

knoxell / certbot-dns-namecheap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ihamsterball/certbot-dns-namecheap

4.0 4.0 4.0 34 KB

Fork! Certbot plugin to provide dns-01 challenge support for namecheap.com

License: Other

Python 98.74% Dockerfile 1.26%

certbot-dns-namecheap's Introduction

Hi there, Iโ€˜m Knoxell ๐Ÿ‘‹

  • ๐Ÿ’ฌ Ask me about anything
  • ๐Ÿ“ซ Reach me by carrier pigeon
  • ๐Ÿ˜„ Pronouns: he/him, they/them

certbot-dns-namecheap's People

Contributors

ihamsterball avatar knoxell avatar schubc avatar wseng avatar

Stargazers

 avatar  avatar  avatar  avatar

certbot-dns-namecheap's Issues

DNS lexicon 3.1.0 changes

From #10 :

As written in certbot pull request in dns-lexicon v3.1.0 the variable type parameter was renamed to rtype, which makes it incompatible with older certbot versions.

Solutions:

  1. require dns-lexicon<3.1.0 only for NPM, maybe in NPM config?
  2. implement create_record and delete_record and pass arguments without names as suggested here
  3. (2.2) try and catch around a call with rtype and type and possibly use super(NamecheapClient,self).*_record(...)

One of these should still be done.

source for clientip unavailable

  1. In _NamecheapLexiconClient(dns_common_lexicon.LexiconClient).__init__ the site http://ip.42.pl/raw is used to get the client ip address, the service is unavailable.
  2. Why is it used at all? LexiconClient uses the dns-lexicon python module, it's cli interface doesn't need me to provice my own ip address.

TODO

  • cheap fix? find alternative service
  • find out what lexicon does I recall reading that they get your ip address from namecheap. That would be ideal, cause not additional service provider is required.

Plugin legacy name should be changed

Running certbot brings up

Plugin legacy name certbot-dns-namecheap:dns-namecheap may be removed in a future version. Please use dns-namecheap instead.

DeprecationWarning during unittest

Unittest reveals DeprecationWarning

/opt/certbot/src/certbot-dns-namecheap/certbot_dns_namecheap/dns_namecheap.py:25: DeprecationWarning: IAuthenticator attribute in certbot.interfaces module is deprecated and will be removed soon.
  @zope.interface.implementer(interfaces.IAuthenticator)
/opt/certbot/src/certbot-dns-namecheap/certbot_dns_namecheap/dns_namecheap.py:26: DeprecationWarning: IPluginFactory attribute in certbot.interfaces module is deprecated and will be removed soon.
  @zope.interface.provider(interfaces.IPluginFactory)
...../usr/local/lib/python3.8/site-packages/lexicon/config.py:356: DeprecationWarning: Legacy configuration object has been used to load the ConfigResolver.
  warnings.warn(
.............
----------------------------------------------------------------------
Ran 18 tests in 1.792s

OK

using `--dry-run` and multiple domains gives namecheap._ApiError

When requesting a certificate for two domains with --dry-run I get

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Simulating a certificate request for *.example.tld and example.tld
Remote: 3
To set: 4
Remote: 4
To set: 5
Waiting 60 seconds for DNS changes to propagate
Remote: 5
To set: 4
Encountered exception during recovery: lexicon.providers.namecheap._ApiError: 1 - Did not receive 200 (Ok) response
The dry run was successful.

I don't really know what I should do, both domains work individually, without error.

And the most bizarre thing without --dry-run there is no error! (--test-run is probably affected aswell)

I'll probably leave this alone because it doesn't effect requesting certificates.

If anyone wants to investigate, feel free to post your findings here. Pull requests are welcome aswell.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.