Fixes #490 - Add support for Namecheap #501
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An implemenation for Namecheap.
I've deployed and used it for three of my own domains now and it works fine.
Since I can't send PRs for the wiki, this is the documentation that should be added about configuration of the Namecheap provider:
Namecheap
App settings
Acmebot:Namecheap:ApiKey
Acmebot:Namecheap:ApiKey
Example API Token configuration
Navigate to https://ap.www.namecheap.com/settings/tools/apiaccess/
Client IP addresses must be whitelisted in your Namecheap account to be able to call the API. For Azure Function apps, this is a bit tricky, because you don't know which IP address the function app uses until it has tried and got rejected.
To find the IP address, you'll have to look at the Application Insights Performance view and look for logs on GetZones. There you should find an entry for api.namecheap.com GET /xml.response and the Path contains the ClientIp=nn.nnn.nn.nnn parameter showing the IP address that was used.
You have to go to your Namecheap profile page and whitelist this IP address.
But there's no guarantee that the function app uses the same IP address when it renews the certificates some months later.