Tried to replace ser2sock certs & failed
Posted: Sat Jan 09, 2016 3:14 pm
I didnt want to keep my certificates stock. So I setup my own self-signed CA and created certificates for both nginx & ser2sock. nxinx works great. However, the ser2sock gave me issues on alarmDecoder. I tried to set the ser2sock back to the stock certs on alarmDecoder and this happened, the same error I got when I tried to use my self-signed certs:
- Code: Select all
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in __call__
return self.wsgi_app(environ, start_response)
File "/opt/alarmdecoder-webapp/ad2web/app.py", line 94, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app
response = self.make_response(self.handle_exception(e))
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/opt/alarmdecoder-webapp/ad2web/decorators.py", line 25, in decorated_function
return f(*args, **kwargs)
File "/opt/alarmdecoder-webapp/ad2web/setup/views.py", line 226, in sslclient
ca_cert = Certificate.query.filter_by(name='AlarmDecoder CA').one()
File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2478, in one
raise orm_exc.NoResultFound("No row was found for one()")
NoResultFound: No row was found for one()