Merge pull request #9549 from heww/update-configure-https

docs(https): update configure_https.md
This commit is contained in:
Daniel Jiang 2019-10-23 16:59:42 +08:00 committed by GitHub
commit a612cefc94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ In a test or development environment, you may choose to use a self-signed certif
``` ```
``` ```
openssl req -x509 -new -nodes -sha512 -days 3650 \ openssl req -x509 -new -nodes -sha512 -days 3650 \
-subj "/C=TW/ST=Taipei/L=Taipei/O=example/OU=Personal/CN=yourdomain.com" \ -subj "/C=CN/ST=Beijing/L=Beijing/O=example/OU=Personal/CN=yourdomain.com" \
-key ca.key \ -key ca.key \
-out ca.crt -out ca.crt
``` ```
@ -34,7 +34,7 @@ If you use FQDN like **yourdomain.com** to connect your registry host, then you
``` ```
openssl req -sha512 -new \ openssl req -sha512 -new \
-subj "/C=TW/ST=Taipei/L=Taipei/O=example/OU=Personal/CN=yourdomain.com" \ -subj "/C=CN/ST=Beijing/L=Beijing/O=example/OU=Personal/CN=yourdomain.com" \
-key yourdomain.com.key \ -key yourdomain.com.key \
-out yourdomain.com.csr -out yourdomain.com.csr
``` ```