Ai
1 Star 0 Fork 2

夜半钟声敲代码/ssl

forked from xiaoQQya/ssl 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gen.root.sh 507 Bytes
一键复制 编辑 原始数据 按行查看 历史
Fishdrowned 提交于 2018-01-02 21:49 +08:00 . fix: be compatible with mac os
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"
if [ -f "out/root.crt" ]; then
echo Root certificate already exists.
exit 1
fi
if [ ! -d "out" ]; then
bash flush.sh
fi
# Generate root cert along with root key
openssl req -config ca.cnf \
-newkey rsa:2048 -nodes -keyout out/root.key.pem \
-new -x509 -days 7300 -out out/root.crt \
-subj "/C=CN/ST=Guangdong/L=Guangzhou/O=Fishdrowned/CN=Fishdrowned ROOT CA"
# Generate cert key
openssl genrsa -out "out/cert.key.pem" 2048
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/CShapeCoder/ssl.git
git@gitee.com:CShapeCoder/ssl.git
CShapeCoder
ssl
ssl
master

搜索帮助