先给 Nexus3中 配置 docker 仓库
Nexus3 配置 Docker 仓库_docker 登录 nexus warning! using --password via the -CSDN博客
接下文:
一、生成证书颁发机构证书
1、生成根证书私钥
openssl genrsa -out rootCA.key 4096
2、生成根证书
# 调整 -subj 选项中的值以反映您的组织
openssl req -x509 -new -nodes -sha512 -days 3650 \
-subj "/C=CN/ST=Shanghai/L=Shanghai/O=example/OU=Personal/CN=nexus.mshxuyi.com" \
-key rootCA.key \
-out rootCA.crt
二、生成服务器证书
证书通常包含一个 .crt 文件和一个 .key 文件
1、生成私钥
openssl genrsa -out nexus.mshxuyi.com.key 4096
2、生成证书签名请求(CSR)
openssl req -sha512 -new \
-subj "/C=CN/ST=Beijing/L=Beijing/O=example/OU=Personal/CN=nexus.mshxuyi.com" \
-key nexus.mshxuyi.com.key \
-out nexus.mshxuyi.com.csr
3、生成一个 x509 v3 扩展文件
cat > v3.ext <<-EOF
authorityKeyIdentifier=keyid,issuer
basicConstraints=CA:FALSE
keyUsage = digitalSignature, nonRepudiation

926

被折叠的 条评论
为什么被折叠?



