mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Adding intermediate certificate support to rest_cherrypy (#32941)
This change configures cherrypy to use an intermediate certificate. I did some manual testing to make sure it works... self-signed certs (with no intermediate configured in the master conf) still work... and I tested with a valid GoDaddy cert and their intermediate too.
This commit is contained in:
parent
5c31a0651f
commit
187fcb236f
@ -92,5 +92,7 @@ def start():
|
||||
cherrypy.server.ssl_module = 'builtin'
|
||||
cherrypy.server.ssl_certificate = apiopts['ssl_crt']
|
||||
cherrypy.server.ssl_private_key = apiopts['ssl_key']
|
||||
if 'ssl_chain' in apiopts.keys():
|
||||
cherrypy.server.ssl_certificate_chain = apiopts['ssl_chain']
|
||||
|
||||
cherrypy.quickstart(root, apiopts.get('root_prefix', '/'), conf)
|
||||
|
Loading…
Reference in New Issue
Block a user