-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement DomeneShop DNS provider #610
Comments
Hi, Thanks for this suggestion. We don't implement every Posh-ACME provider preferring to only include ones that users ask for. I've prepared an update you could test: To try this out, extract the zip file and copy the Certify.Shared.Extensions.dll file in your existing Certify The Web installation under If you encounter problems you can revert by uninstalling the app and reinstalling the current version, this won't affect your data /settings (that's stored separately under C:\ProgramData\certify). |
I have copied the .dll to the correct directory and added apropriate credentials.
Am I right in assuming that the credentials worked and that there might be other problems ? |
Sorry, I don't have any way to test Domenshop directly. You could perhaps try Posh-ACME instead https://poshac.me/docs/v4/ and if that works OK then the problem is in Certify The Web or your saved credentials, if it doesn't work then the problem is within the Posh-ACME provider. |
Is there any possibility of turning on logging for plugins? I have found the logs, but I've not found any way to turn on logging for the plugins yet. |
No, we currently don't have additional logging for the Posh-ACME based plugins or any diagnostic logging in DNS plugins in general. If it errors it should log to the main log for that managed certificate but if you need to inspect http requests you'd need to install and run Fiddler or other traffic inspection software because it operates outside of our normal http logging (which is present when talking to the ACME API). |
It is a pity, because Posh-ACME when run in verbose mode tells what it is doing. |
Can you double check the saved credential is correct? The error sounds a lot like it's failing to query using your current credentials. |
The credentials are copied and pasted from Domeneshop. |
When we call posh-acme's domeneshop provider we wrap it with our own script and it looks like this:
You could try running an adapted version of the above, replacing your dns record name and test token and secret as requires, you may need to adapt the paths to get it to run but then you could also see the verbose output. If I try it with invalid credentials I get a (401) Unauthorized error, which is different to the issue you are seeing. |
Thanks! That looks good. I am looking into adapting Posh-ACME to provide more information from Invoke-RestMethod. I have also asked about Posh-ACME displaying the return information from the Invoke-DomeneshopAPI function when I use the -Verbose switch. |
Great, note also that you can try this out on any machine if you have the credentials so it doesn't have to be on the server, so that may you use Fiddler to inspect the https conversation. |
If I use the latest Posh-ACME directly from Github, it will display the RestAPI data when the $DebugPreference variable is set to the right value. I really, really, really love the debug output. I can see that the problem is probably in Domeneshop plugin because I found the Error messag there. The answer from Domeneshop contains the requested information, so there might be an issue decoding the answer. Fiddler is probably more complicated than just setting $DebugPreference = 'Continue'; before running the script (I like semicolons). |
The function Find-DomeneshopZone seems to be weird since it check both for stavanger.kommune.no and kommune.no. The latter have several subdomains. I don't think the function works fine with something that returns multiple values. I'll have a go tomorrow at finding out what the Invoke-DomeneshopAPI function really returns. |
Hi,
I'm evaluating Certify The Web for my organization.
It appears that our DNS pusher DomeneShop is not in the "DNS Update Method" drop down menu. I can see it in the list of plugins for Posh-ACME found in C:\Program Files\CertifyTheWeb\Scripts\DNS\PoshACME\Plugins.
Would it be Possible to add DomeneShop to the menu or failing that : To create a generic DNS Update Method entry which can be used to select the desired Posh-Acme plugin ?
Greetings to you all!
The text was updated successfully, but these errors were encountered: