Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nodeStudy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马旭烽
nodeStudy
Commits
d5650858
Commit
d5650858
authored
Jul 08, 2023
by
马旭烽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
feat: 创建本地证书脚本
parent
bcd88e01
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
base.ps1
扩展脚本/SSL证书创建辅助脚本/base.ps1
+15
-0
No files found.
扩展脚本/SSL证书创建辅助脚本/base.ps1
0 → 100644
View file @
d5650858
# 设置本地 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment