1
0
mirror of https://github.com/goharbor/harbor.git synced 2025-03-30 16:26:03 +02:00

Merge pull request from halfa/master

Change empty_subj to fix  openssl issue
This commit is contained in:
Daniel Jiang 2018-07-06 15:08:10 +08:00 committed by GitHub
commit 3bb4e2c921
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -515,7 +515,7 @@ def openssl_installed():
if customize_crt == 'on' and openssl_installed():
shell_stat = subprocess.check_call(["which", "openssl"], stdout=FNULL, stderr=subprocess.STDOUT)
empty_subj = "/C=/ST=/L=/O=/CN=/"
empty_subj = "/"
private_key_pem = os.path.join(config_dir, "ui", "private_key.pem")
root_crt = os.path.join(config_dir, "registry", "root.crt")
create_root_cert(empty_subj, key_path=private_key_pem, cert_path=root_crt)