mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
It was a comma !!!
This commit is contained in:
parent
7e6d34de0f
commit
2f89c3a93d
@ -632,7 +632,7 @@ class Helpers:
|
|||||||
alt_names = ','.join([ 'DNS:%s' % socket.gethostname(), 'DNS:*.%s' % socket.gethostname(), 'DNS:localhost', 'DNS:*.localhost', 'DNS:127.0.0.1']).encode()
|
alt_names = ','.join([ 'DNS:%s' % socket.gethostname(), 'DNS:*.%s' % socket.gethostname(), 'DNS:localhost', 'DNS:*.localhost', 'DNS:127.0.0.1']).encode()
|
||||||
subjectAltNames_Ext = crypto.X509Extension(b'subjectAltName', False, ','.join([ 'DNS:%s' % socket.gethostname(), 'DNS:*.%s' % socket.gethostname(), 'DNS:localhost', 'DNS:*.localhost', 'DNS:127.0.0.1']).encode())
|
subjectAltNames_Ext = crypto.X509Extension(b'subjectAltName', False, ','.join([ 'DNS:%s' % socket.gethostname(), 'DNS:*.%s' % socket.gethostname(), 'DNS:localhost', 'DNS:*.localhost', 'DNS:127.0.0.1']).encode())
|
||||||
basicConstraints_Ext = crypto.X509Extension(b"basicConstraints", True, b"CA:false")
|
basicConstraints_Ext = crypto.X509Extension(b"basicConstraints", True, b"CA:false")
|
||||||
cert.add_extensions([subjectAltNames_Ext, basicConstraints_Ext]),
|
cert.add_extensions([subjectAltNames_Ext, basicConstraints_Ext])
|
||||||
cert.set_serial_number(random.randint(1,255))
|
cert.set_serial_number(random.randint(1,255))
|
||||||
cert.gmtime_adj_notBefore(0)
|
cert.gmtime_adj_notBefore(0)
|
||||||
cert.gmtime_adj_notAfter(365 * 24 * 60 * 60)
|
cert.gmtime_adj_notAfter(365 * 24 * 60 * 60)
|
||||||
|
Loading…
Reference in New Issue
Block a user