mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-01 21:47:57 +01:00
Merge pull request #1113 from ywk253100/161117_ova_2
Modify msg of certificate
This commit is contained in:
commit
fcdb212cb0
@ -52,11 +52,11 @@ function genCert {
|
|||||||
then
|
then
|
||||||
openssl req -newkey rsa:4096 -nodes -sha256 -keyout $ca_key \
|
openssl req -newkey rsa:4096 -nodes -sha256 -keyout $ca_key \
|
||||||
-x509 -days 365 -out $ca_cert -subj \
|
-x509 -days 365 -out $ca_cert -subj \
|
||||||
"/C=US/ST=California/L=Palo Alto/O=VMware/OU=CA/CN=CA"
|
"/C=US/ST=California/L=Palo Alto/O=VMware, Inc./OU=Harbor/CN=Self-signed by VMware, Inc."
|
||||||
fi
|
fi
|
||||||
openssl req -newkey rsa:4096 -nodes -sha256 -keyout $key \
|
openssl req -newkey rsa:4096 -nodes -sha256 -keyout $key \
|
||||||
-out $csr -subj \
|
-out $csr -subj \
|
||||||
"/C=US/ST=California/L=Palo Alto/O=VMware/OU=Harbor/CN=$hostname"
|
"/C=US/ST=California/L=Palo Alto/O=VMware, Inc./OU=Harbor/CN=$hostname"
|
||||||
if [ "$isFQDN" = false ]
|
if [ "$isFQDN" = false ]
|
||||||
then
|
then
|
||||||
echo "Add subjectAltName = IP: $hostname to certificate"
|
echo "Add subjectAltName = IP: $hostname to certificate"
|
||||||
|
Loading…
Reference in New Issue
Block a user