Skip to content
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

Active24 plugin no longer working #540

Closed
Gibonnn opened this issue Mar 28, 2024 · 25 comments
Closed

Active24 plugin no longer working #540

Gibonnn opened this issue Mar 28, 2024 · 25 comments
Assignees
Labels
bug Something isn't working

Comments

@Gibonnn
Copy link

Gibonnn commented Mar 28, 2024

Hi there,
hosting provider Active24 has a new management system and also new API. It is documented here
https://rest.websupport.sk/v2/docs#/
https://rest.websupport.sk/v2/docs/intro

That means the original url is no longer working and its not possible to use Active24 plugin at all.
Is it possible to update the plugin?

Cheers

@rmbolger rmbolger self-assigned this Mar 28, 2024
@rmbolger rmbolger added the bug Something isn't working label Mar 28, 2024
@rmbolger
Copy link
Owner

Hey @Gibonnn, thanks for reaching out. I'm sure it's possible to update the plugin. I'll need to purchase a domain to get access to test with though unless you feel like sharing an existing API key with me. And I can't give a definitive timeframe as I'm about to go out of town for a week.

@rmbolger
Copy link
Owner

I can't seem to find any references from the Active24 website to this websupport.sk API. All the support documentation still seems to link to the original API. Even the customer center still has my old API tokens there.

https://faq.active24.com/eng/739445-REST-API-for-developers?l=en-US

@rmbolger
Copy link
Owner

The current API is also still working for me for things like payment history queries. Where are you hearing they have a new management system and that the old API is no longer working?

@rmbolger
Copy link
Owner

If anything, websupport.sk seems to be its own separate provider. Or is this some sort of rebranding from Active24 to WebSupport.sk?

@Gibonnn
Copy link
Author

Gibonnn commented Mar 29, 2024

Hi,
Thanks for quick check. Yes websupport.sk and websupport.cz is a new management system for Active24. They also mention it on their website, but maybe that only affects Czech customers, like me. I have to take a closer look again and maybe contact their support.
For my domain hosted there I cant create any cert with the script, it tells me it cant find the zone for the dns challenge, but I know its there.
Sorry Im also leaving for 4 days now and cant provide any error messages now. Will ping when Im back.
Cheers!

@Gibonnn
Copy link
Author

Gibonnn commented Mar 29, 2024

Here is the info about the change in English.
https://www.active24.com/en/about/active-24-moving-to-new-platform

@rmbolger
Copy link
Owner

Thanks. That explains why my own account may not have been moved yet. But basically it seems like I just need to develop a new plugin for WebSupport.sk in general and that should cover anyone already there or anyone from Active24 who has been moved already.

@Gibonnn
Copy link
Author

Gibonnn commented Mar 30, 2024

yea I guess so. Think thats feasable for you? In case, I could at least save you the bucks and pay some dummy domain.
Happy Easter! .)

@rmbolger
Copy link
Owner

Definitely feasible. I might even be able to whip up a draft plugin before I take off on my trip. It looks like the cheapest TLD there is about 3 EUR right now. I can take care of purchasing the domain. But if you feel like tossing a few bucks my way via the Github sponsors link, that would be appreciated.

@Gibonnn
Copy link
Author

Gibonnn commented Mar 30, 2024

Sounds great! Yea, I will send some hello card your way ;)

@rmbolger
Copy link
Owner

Just as a status update, I have working code that can authenticate to the WebSupport API now. But my domain registration is stalled pending some identity verification on their end. So I can't get much further until they validate some documents I sent.

@rmbolger
Copy link
Owner

Domain registration all set. But now I'm running into some rough edges with their API. In particular, there are only 4 basic DNS operations. But all of them require a service parameter which is apparently an internal ID for the domain in their system. But there does not appear to be a way to use the API to query the list of available services on an account.

So with the new plugin, you're going to have to first look up the service IDs in the GUI control panel associated with the domains in your certificate. Then you'll have to pass them as part of the PluginArgs hashtable you send along with the API credentials. The old Active24 API didn't require this because you could just use the domain name directly in the query.

Their docs and the current functionality of the API also don't quite match up in certain places. So it's a bit slower than it should be figuring out how things are supposed to work. The GET request for records in web-based Swagger testing tool doesn't actually work because it has mandatory filtering values in the Body of the GET request and then complains that GETs aren't allowed to have a Body.

None of this is your problem, btw. I'm just sort of thinking out loud as I work through the process to create this plugin.

@rmbolger
Copy link
Owner

Ugh, there's also no surefire way to determine what domain a given service ID is associated with. You can infer based on the records that exist in the zone. But if the zone is empty, you're stuck because the GET records query won't return any data with the domain name in it.

rmbolger added a commit that referenced this issue Mar 31, 2024
@rmbolger
Copy link
Owner

rmbolger commented Mar 31, 2024

Hey @Gibonnn, give this draft plugin a try. You can just download the file and throw it into the existing Plugins folder.
https://github.com/rmbolger/Posh-ACME/blob/websupport/Posh-ACME/Plugins/WebsupportSK.ps1

And here's a link to the draft usage guide if you need it.
https://github.com/rmbolger/Posh-ACME/blob/websupport/docs/Plugins/WebsupportSK.md

Once you have the plugin installed and force re-import the module, here's how you can switch the plugin on an existing Posh-ACME order.

$pArgs = @{
    WskCredential = Get-Credential # username is API Identifier, password is API Secret
    WskServiceId = '12345','23456' # These are the domain IDs from the web portal
}
Set-PAOrder example.com -Plugin WebsupportSK -PluginArgs $pArgs -DnsSleep 300

@Gibonnn
Copy link
Author

Gibonnn commented Mar 31, 2024

Cool, I will check it out hopefully tonight.
Thanks!!

@rmbolger
Copy link
Owner

I sent an email to support asking about some feature requests to the API to make it less cumbersome to use. Apparently, this v2 version of the API is still pretty new and missing a lot of features that used to exist in v1 they haven't implemented yet.

I'll have to see if I can combine using v1 and v2 so you don't have to do things like specify the Service ID for your domains in the plugin args. But the existing draft plugin should still work for the time being.

@rmbolger
Copy link
Owner

Ok, updated the draft version and it no longer requires specifying the service IDs. You can now use it like this:

$pArgs = @{
    WskCredential = Get-Credential # username is API Identifier, password is API Secret
}
Set-PAOrder example.com -Plugin WebsupportSK -PluginArgs $pArgs -DnsSleep 300

@Gibonnn
Copy link
Author

Gibonnn commented Apr 1, 2024

Ryan, I did not have a chance to try it yet. Me and my wife and daughter have returned yesterday evening after 3 days of Handball tournament that my son played.
Thanks for your work and I will let you know the outcome when I can.
Cheeeeers

@Gibonnn
Copy link
Author

Gibonnn commented Apr 4, 2024

Hi Ryan,
just tried as adviced and nothing happened. Right after I hit enter I got empty line, no error, info, nothing.
image
Rg

@rmbolger
Copy link
Owner

rmbolger commented Apr 4, 2024

Sorry for the confusion. The Set-PAOrder command just changes the active plugin details for that order. If you now want to try renewing the cert, you’d need to run Submit-Renewal as normal or let your scheduled task do it if you have one setup.

@Gibonnn
Copy link
Author

Gibonnn commented Apr 4, 2024

OK WIth New-PACertificate everything went well and its working fine! I got my certifikace nice and shiny.
Thanks a lot!

@rmbolger
Copy link
Owner

rmbolger commented Apr 4, 2024

Excellent! Happy to hear it. I’ll try and wrap everything up into a new release when I get back from my own trip.

@Gibonnn
Copy link
Author

Gibonnn commented Apr 4, 2024

Sure, thanks again! I have sent some coffee money for the great help.
Just one more question - what would be the password for the PFX file to import? I found something like "PfxPassB64U" in the order.json, but that one is not accepted by Windows import wizard.
Cheers, enjoy your trip .)

@rmbolger
Copy link
Owner

rmbolger commented Apr 4, 2024

Default pfx password is just poshacme. It should also be a viewable property on the PAOrder object returned by things like Get-PAOrder and is settable with Set-PAOrder.

@rmbolger
Copy link
Owner

rmbolger commented May 4, 2024

The Websupport.sk plugin is live in 4.22.0

@rmbolger rmbolger closed this as completed May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants