Unable to renew certificate

When trying to renew my certificate with GenLeCertForNS.ps1 for use on my NetScaler I get the following errormessage:

INFO [REGISTRATION] Current registration is not equal to "@", currently empty! Setting new registration.
2025-08-12 09:42:19:1644 INFO [REGISTRATION] Account 220050633 set as default.
2025-08-12 09:42:19:3649 ERROR [REGISTRATION] User registration failed.
2025-08-12 09:42:19:4867 ERROR [INVOKE-REGISTERERROR] [1] User registration failed

I used this before and it always worked. Does anyone have an idea?

Kind regards,

Robin

I'm not familiar with that script, but from searching around, it looks to be something based on Posh-ACME. I have some generic advice that may or may not help:

  1. Can you make sure you are on the latest version of that script, and that it's using the latest version of Posh-ACME??

  2. Can you run with -LogLevel Debug which I'm hoping will give more helpful information?

  3. Is there any chance this has been broken for you since May? Around that time, Let's Encrypt's API servers changed to use an ECDSA certificate instead of an RSA one, and some Windows servers have been overly "hardened" and have disabled those ciphers. You can find more information in these threads, which are for a different Windows client but the fix would be the same if that's the problem.

    Certify the Web Cannot create secure channel error

    Fix: "Could not create SSL/TLS secure channel." when attempting a certificate order with Let's Encrypt (or "CA ACME Directory is not accessible") - Announcements - Certify The Web - Support Community

4 Likes

The script GenLeCertForNS/GenLeCertForNS.ps1 at master · j81blog/GenLeCertForNS · GitHub
is expecting the account registration to return an email address, but Let's Encrypt don't do that any more, so you'll need to edit the script to allow the email address returned by the registration to be null/blank

5 Likes

Good catch! It looks like that's listed in their issue tracker, though I don't see an expected release date or anything like that.

5 Likes

Thanks for your responses. I have found a new version of the script ( j81blog/GenLeCertForNS at dev) which does work. My certificate has been renewed!

5 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.