Commit d5650858 authored by 马旭烽's avatar 马旭烽

feat: 创建本地证书脚本

parent bcd88e01
# 设置本地 SSL 执行目录 解决找不到变量问题
# 设置本地 SSL 执行目录 解决找不到变量问题
Set-Variable OPENSSL_CONFIG "d:\Tool\OpenSSL-Win64\bin"
# mkdir ssl
Set-Location ./ssl
# demo 自己起的名字
openssl.exe genrsa -des3 -out demo.key 1024
# 文件 创建csr证书
openssl.exe req -new -key demo.key -out demo.csr
Copy-Item "demo.key" -Destination "demo.key.org"
# 生成 crt 证书
openssl.exe x509 -req -days 365 -in demo.csr -signkey demo.key -out demo.crt
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment