Trying to use letsencrypt, having write error
Posted: September 5th, 2016, 12:41 am
I'm not sure why, but sab is trying to write something in the cert directory. By default letsencrypt uses root for that and doesn't allow any other user to write to the directory. I'm more concerned why sab even needs to write anything. Shouldn't it just read the cert and load it into memory?
Centos 7 x86-64
Python 2.7.5
Centos 7 x86-64
Python 2.7.5
Code: Select all
2016-09-05 00:34:34,071::INFO::[SABnzbd:527] pyOpenSSL... found (True)
2016-09-05 00:34:34,071::INFO::[SABnzbd:1372] SSL version OpenSSL 1.0.1e-fips 11 Feb 2013
2016-09-05 00:34:34,072::INFO::[SABnzbd:1373] pyOpenSSL version 0.13.1
2016-09-05 00:34:34,072::INFO::[SABnzbd:1374] SSL potentially supported protocols ['SSLv2', 'SSLv23', 'SSLv3', 'TLSv1', 'TLSv1_1', 'TLSv1_2']
2016-09-05 00:34:34,072::INFO::[SABnzbd:1375] SSL actually supported protocols ['t1', 'v23', 'v3', 'v2']
2016-09-05 00:34:34,127::ERROR::[misc:1155] Error creating SSL key and certificate
2016-09-05 00:34:34,127::INFO::[misc:1156] Traceback:
Traceback (most recent call last):
File "/home/user/newsgroup/SABnzbd-1.0.3/sabnzbd/misc.py", line 1152, in create_https_certificates
open(ssl_key, 'w').write(crypto.dump_privatekey(crypto.FILETYPE_PEM, pkey))
IOError: [Errno 13] Permission denied: u'/etc/letsencrypt/live/www.site.com/privkey.pem'
2016-09-05 00:34:34,128::WARNING::[SABnzbd:1406] Disabled HTTPS because of missing CERT and KEY files
2016-09-05 00:34:34,130::INFO::[SABnzbd:1522] Starting web-interface on 0.0.0.0:8085
2016-09-05 00:34:34,130::INFO::[_cplogging:216] [05/Sep/2016:00:34:34] ENGINE Bus STARTING
2016-09-05 00:34:34,136::INFO::[_cplogging:216] [05/Sep/2016:00:34:34] ENGINE Started monitor thread '_TimeoutMonitor'.
2016-09-05 00:34:34,237::INFO::[_cplogging:216] [05/Sep/2016:00:34:34] ENGINE Serving on http://0.0.0.0:8085
2016-09-05 00:34:34,238::INFO::[_cplogging:216] [05/Sep/2016:00:34:34] ENGINE Bus STARTED