Error creating SSL key and certificate

Get help with all aspects of SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
ptg
Newbie
Newbie
Posts: 4
Joined: January 7th, 2020, 8:32 am

Error creating SSL key and certificate

Post by ptg »

Hello,

Hoping to get some help i have been struggling with this for 2 days..

I am trying to enable HTTPS with sabnzbd generated cert and key and every attempt throws the error Error creating SSL key and certificate

I am on windows 7 using latest stable version with default directories. I am not sure what else to try in attempt to fix.

Reason i need to enable is that is appears sonarr is disabling TLS 1.2 on startup when it detects SABnzbd is running without certs and this is preventing successfully connecting to certain site APIs.

Here is the message from the log:
2020-01-07 07:40:37,365::ERROR::[misc:1462] Error creating SSL key and certificate
2020-01-07 07:40:37,365::INFO::[misc:1463] Traceback:
Traceback (most recent call last):
File "sabnzbd\misc.pyo", line 1458, in create_https_certificates
File "sabnzbd\utils\certgen.pyo", line 39, in generate_key
File "cryptography\hazmat\backends\__init__.pyo", line 15, in default_backend
File "cryptography\hazmat\backends\openssl\__init__.pyo", line 7, in <module>
File "cryptography\hazmat\backends\openssl\backend.pyo", line 25, in <module>
ImportError: cannot import name aead
2020-01-07 07:40:37,365::WARNING::[SABnzbd:1296] Disabled HTTPS because of missing CERT and KEY files


Help is greatly appreciated.

Thank you in advance,
Patrick
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Error creating SSL key and certificate

Post by safihre »

Are you using SABnzbd 2.3.9? And you are using it with the regular installer from the Downloads page here?
Strange, on Win10 it works just fine.

You can also manually create certificates with OpenSSL like this: https://sabnzbd.org/wiki/advanced/https
And just put them in your admin-folder with the right name server.cert/server.key.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
ptg
Newbie
Newbie
Posts: 4
Joined: January 7th, 2020, 8:32 am

Re: Error creating SSL key and certificate

Post by ptg »

safihre wrote: January 7th, 2020, 9:34 am Are you using SABnzbd 2.3.9? And you are using it with the regular installer from the Downloads page here?
Strange, on Win10 it works just fine.

You can also manually create certificates with OpenSSL like this:
And just put them in your admin-folder with the right name server.cert/server.key.
Thanks for the reply!
Yes using 2.3.9, regular installer downloaded from here.
I did see that about OpenSSL but was not really sure what installing it does to my system (new to that kind of software).

I tried putting in the full path and filename still get same error.
Tried creating dummy files to see if sabnzbd would over write them but sabnzbd would not start up.
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Error creating SSL key and certificate

Post by safihre »

Could you try running SABnzbd as Administrator an see if that works?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
ptg
Newbie
Newbie
Posts: 4
Joined: January 7th, 2020, 8:32 am

Re: Error creating SSL key and certificate

Post by ptg »

safihre wrote: January 8th, 2020, 4:39 am Could you try running SABnzbd as Administrator an see if that works?
Guessing that means execute with the "Run as Administrator" in windows?
If so, I can give that a try!

In the meantime i was able to stumble thru OpemSSL and get them generated and SABNzbd seems to accept them and work which has stopped the TLS 1.2 error in sonarr ... Woohoo!

I will try the run as admin soon as i get a chance!

Thanks soooooo much!!!
Patrick
User avatar
safihre
Administrator
Administrator
Posts: 5366
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Error creating SSL key and certificate

Post by safihre »

Great :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
ptg
Newbie
Newbie
Posts: 4
Joined: January 7th, 2020, 8:32 am

Re: Error creating SSL key and certificate

Post by ptg »

Well I tried the right click and run as administrator with no luck, still would not create the files and disables https.

Also, I started getting errors in sonarr about problems with the certificate (that I generated in OpenSSL) and again disabling TLS1.2.
So i used OpenSSL again and i used higher encryption, replaced the old files and now sonarr is working again and so far not complaining.
Post Reply