mirror of
https://github.com/goharbor/harbor.git
synced 2025-02-10 17:01:27 +01:00
Merge pull request #16193 from YangJiao0817/fix-RSA-key
[cherry-pick]Fix: using traditional `PKCS#1` format RSA key
This commit is contained in:
commit
745e1cd8e2
@ -59,7 +59,7 @@ def stat_decorator(func):
|
||||
|
||||
@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…
Reference in New Issue
Block a user