mirror of
https://github.com/goharbor/harbor
synced 2025-05-21 14:26:36 +00:00
Merge pull request #16104 from ninjadq/generated_rsa_key_format
Fix: using traditional `PKCS#1` format RSA key
This commit is contained in:
commit
7a5bab1c3e
@ -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,\
|
||||
|
@ -59,8 +59,6 @@ sudo make compile build prepare COMPILETAG=compile_golangimage GOBUILDTAGS="incl
|
||||
|
||||
# set the debugging env
|
||||
echo "GC_TIME_WINDOW_HOURS=0" | sudo tee -a ./make/common/config/core/env
|
||||
# TODO This is a temporary solution to core private_key
|
||||
sudo openssl rsa -in /data/secret/core/private_key.pem -out /data/secret/core/private_key.pem
|
||||
sudo make start
|
||||
|
||||
# waiting 5 minutes to start
|
||||
|
Loading…
x
Reference in New Issue
Block a user