Re: https access issues after renewing SSL cert [QNAP]
Posted: March 1st, 2021, 3:03 am
Hmm, I'm not sure what else to check.
@sander: any thoughts on this?
@sander: any thoughts on this?
Code: Select all
/etc/init.d/sabnzbd3.sh cleanIf so, that is important information which he/she did not share here. Pity.
I've run a clean and it's still doing the same issue. OneCD I'm happy to speak privately on the QNAP forums if you want to do some testing?OneCD wrote: ↑March 1st, 2021, 3:25 am My understanding from @GTunney on the QNAP forum is that this only started when they upgraded to SAB 3.2.0. There were no problems prior to that with HTTPS.
This didn't require an updated QPKG to be released - just a 'git pull' from within the existing package is sufficient.
But, I guess a refresh couldn't hurt. @GTunney, can you please run a 'clean' operation on that package?This will ensure your local git clone of SAB is completely removed and refreshed from GitHub. Your settings will be retained.Code: Select all
/etc/init.d/sabnzbd3.sh clean
I'm sorry, I was trying to narrow down whether it was the renewal of my SSL cert or the upgrade to 3.2.0, I thought I'd mentioned it but must have been on QNAP forums and not here.
No, let's keep the discussion here for now - it's easier to track the issue if everything is in one place.
Good idea.

Code: Select all
nano $(getcfg SABnzbd Install_Path -f /etc/config/qpkg.conf)/sabnzbd3.shCode: Select all
readonly SOURCE_GIT_BRANCH=masterCode: Select all
readonly SOURCE_GIT_BRANCH=3.1.1Code: Select all
/etc/init.d/sabnzbd3.sh restartNo probs, thought I'd just update with some extra info for help.
GTunney wrote: ↑March 1st, 2021, 1:47 pm Not sure if this is something that might help with my SSL issue, just saw this in the logs from today.
Code: Select all
2021-03-01 16:07:01,625::INFO::[notifier:122] Sending notification: Error - [01/Mar/2021:16:07:01] ENGINE Error in HTTPServer.serve Traceback (most recent call last): File "/opt/lib/python3.9/site-packages/cheroot/server.py", line 1810, in serve self._connections.run(self.expiration_interval) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 201, in run self._run(expiration_interval) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 218, in _run new_conn = self._from_server_socket(self.server.socket) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 271, in _from_server_socket s, ssl_env = self.server.ssl_adapter.wrap(s) File "/opt/lib/python3.9/site-packages/cheroot/ssl/builtin.py", line 277, in wrap s = self.context.wrap_socket( File "/opt/lib/python3.9/ssl.py", line 500, in wrap_socket File "/opt/lib/python3.9/ssl.py", line 1040, in _create File "/opt/lib/python3.9/ssl.py", line 1309, in do_handshake ssl.SSLError: [SSL: BAD_KEY_SHARE] bad key share (_ssl.c:1122) (type=error, job_cat=None) 2021-03-01 16:07:01,625::ERROR::[_cplogging:213] [01/Mar/2021:16:07:01] ENGINE Error in HTTPServer.serve Traceback (most recent call last): File "/opt/lib/python3.9/site-packages/cheroot/server.py", line 1810, in serve self._connections.run(self.expiration_interval) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 201, in run self._run(expiration_interval) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 218, in _run new_conn = self._from_server_socket(self.server.socket) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 271, in _from_server_socket s, ssl_env = self.server.ssl_adapter.wrap(s) File "/opt/lib/python3.9/site-packages/cheroot/ssl/builtin.py", line 277, in wrap s = self.context.wrap_socket( File "/opt/lib/python3.9/ssl.py", line 500, in wrap_socket File "/opt/lib/python3.9/ssl.py", line 1040, in _create File "/opt/lib/python3.9/ssl.py", line 1309, in do_handshake ssl.SSLError: [SSL: BAD_KEY_SHARE] bad key share (_ssl.c:1122)
Https access with Sherpa 3.1.1 has just gone off. Checked the logs and same error as above in the logs so doesn’t seem linked to 3.2.0 but deffo linked to Sherpa.OneCD wrote: ↑March 2nd, 2021, 5:19 pm Including this from the QNAP forum in-case it's relevant:GTunney wrote: ↑March 1st, 2021, 1:47 pm Not sure if this is something that might help with my SSL issue, just saw this in the logs from today.
Code: Select all
2021-03-01 16:07:01,625::INFO::[notifier:122] Sending notification: Error - [01/Mar/2021:16:07:01] ENGINE Error in HTTPServer.serve Traceback (most recent call last): File "/opt/lib/python3.9/site-packages/cheroot/server.py", line 1810, in serve self._connections.run(self.expiration_interval) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 201, in run self._run(expiration_interval) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 218, in _run new_conn = self._from_server_socket(self.server.socket) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 271, in _from_server_socket s, ssl_env = self.server.ssl_adapter.wrap(s) File "/opt/lib/python3.9/site-packages/cheroot/ssl/builtin.py", line 277, in wrap s = self.context.wrap_socket( File "/opt/lib/python3.9/ssl.py", line 500, in wrap_socket File "/opt/lib/python3.9/ssl.py", line 1040, in _create File "/opt/lib/python3.9/ssl.py", line 1309, in do_handshake ssl.SSLError: [SSL: BAD_KEY_SHARE] bad key share (_ssl.c:1122) (type=error, job_cat=None) 2021-03-01 16:07:01,625::ERROR::[_cplogging:213] [01/Mar/2021:16:07:01] ENGINE Error in HTTPServer.serve Traceback (most recent call last): File "/opt/lib/python3.9/site-packages/cheroot/server.py", line 1810, in serve self._connections.run(self.expiration_interval) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 201, in run self._run(expiration_interval) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 218, in _run new_conn = self._from_server_socket(self.server.socket) File "/opt/lib/python3.9/site-packages/cheroot/connections.py", line 271, in _from_server_socket s, ssl_env = self.server.ssl_adapter.wrap(s) File "/opt/lib/python3.9/site-packages/cheroot/ssl/builtin.py", line 277, in wrap s = self.context.wrap_socket( File "/opt/lib/python3.9/ssl.py", line 500, in wrap_socket File "/opt/lib/python3.9/ssl.py", line 1040, in _create File "/opt/lib/python3.9/ssl.py", line 1309, in do_handshake ssl.SSLError: [SSL: BAD_KEY_SHARE] bad key share (_ssl.c:1122)
Nice find @Puzzled.Puzzled wrote: ↑March 2nd, 2021, 6:02 pm A Google search for that error line gives this suggestion: https://stackoverflow.com/questions/654 ... -key-share
Code: Select all
sherpa clean
sherpa reinstall sabThat hasn’t worked. If anything it’s worse. Only access on https for a few minsOneCD wrote: ↑March 3rd, 2021, 12:47 pmNice find @Puzzled.Puzzled wrote: ↑March 2nd, 2021, 6:02 pm A Google search for that error line gives this suggestion: https://stackoverflow.com/questions/654 ... -key-share![]()
I've just modified sherpa to use the PIP 'pyopenssl' package instead of the IPKG 'python3-pyopenssl' package provided by Entware. Let's see if it solves the problem.
@GTunney, can you please run the following to switch the Python SSL modules?This will put you back on SAB 3.2.0.Code: Select all
sherpa clean sherpa reinstall sab
Bah!
Ah, no worries. Thank you.