|
|
|
@ -40,11 +40,7 @@ copy_extensions = copyall
|
|
|
|
|
[req_distinguished_name] |
|
|
|
|
CN = swarm.invalid |
|
|
|
|
[req_ext] |
|
|
|
|
# TODO(hongbin): This is a temporary work-around for a gate breakage. |
|
|
|
|
# Need to investigate the issue and revert this temporary fix. |
|
|
|
|
# Bug #1568212 - '\xac\x18\x05\x07' does not appear to be an IPv4 or IPv6 |
|
|
|
|
# address |
|
|
|
|
#subjectAltName = %(subject_alt_names)s |
|
|
|
|
subjectAltName = %(subject_alt_names)s |
|
|
|
|
extendedKeyUsage = clientAuth,serverAuth |
|
|
|
|
""" |
|
|
|
|
|
|
|
|
@ -103,15 +99,10 @@ def write_server_key():
|
|
|
|
|
|
|
|
|
|
def _write_csr_config(config): |
|
|
|
|
with open(SERVER_CONF_PATH, 'w') as fp: |
|
|
|
|
# TODO(hongbin): This is a temporary work-around for a gate breakage. |
|
|
|
|
# Need to investigate the issue and revert this temporary fix. |
|
|
|
|
# Bug #1568212 - '\xac\x18\x05\x07' does not appear to be an IPv4 or |
|
|
|
|
# IPv6 address |
|
|
|
|
# params = { |
|
|
|
|
# 'subject_alt_names': _build_subject_alt_names(config) |
|
|
|
|
# } |
|
|
|
|
# fp.write(CSR_CONFIG_TEMPLATE % params) |
|
|
|
|
fp.write(CSR_CONFIG_TEMPLATE) |
|
|
|
|
params = { |
|
|
|
|
'subject_alt_names': _build_subject_alt_names(config) |
|
|
|
|
} |
|
|
|
|
fp.write(CSR_CONFIG_TEMPLATE % params) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_server_csr(config): |
|
|
|
|