mirror of
https://github.com/goharbor/harbor
synced 2025-04-27 22:38:14 +00:00
Fix: using traditional PKCS#1
format RSA key
The openssl 3.0.0 using newer `PKCS#8` format. But it's not compatitable with harbor core So using tradictional format instead Signed-off-by: Qian Deng <dengq@vmware.com>
This commit is contained in:
parent
eb8db3215c
commit
69a194b2b4
@ -46,7 +46,7 @@ def get_alias(path):
|
||||
|
||||
@stat_decorator
|
||||
def create_root_cert(subj, key_path="./k.key", cert_path="./cert.crt"):
|
||||
rc = subprocess.call(["/usr/bin/openssl", "genrsa", "-out", key_path, "4096"], stdout=DEVNULL, stderr=subprocess.STDOUT)
|
||||
rc = subprocess.call(["/usr/bin/openssl", "genrsa", "-traditional", "-out", key_path, "4096"], stdout=DEVNULL, stderr=subprocess.STDOUT)
|
||||
if rc != 0:
|
||||
return rc
|
||||
return subprocess.call(["/usr/bin/openssl", "req", "-new", "-x509", "-key", key_path,\
|
||||
|
Loading…
x
Reference in New Issue
Block a user