当前位置:网站首页>redhat/openssl generates a self-signed ca certificate and uses it
redhat/openssl generates a self-signed ca certificate and uses it
2022-07-31 14:07:00 【Gur.】
One-click generation of self-signed ssl certificate and private key
./create_self_signed_cert.sh"/C=CN/ST=Guangdong/L=Guangzhou/O=xdevops/OU=xdevops/CN=gitlab.xdevops.cn"Check OpenSSL
Check if openssl is installed
openssl versionGenerally on CentOS7, openssl is already installed by default.
Generate self-signed SSL certificate and private key
Step 1: Generate a private key
# genra generate RSA private key# -des3 des3 algorithm# -out server.key Generated private key file name# 2048 Private key lengthopenssl genrsa -des3 -out server.pass.key 2048Step 2: Remove the password from the private key
openssl rsa -in server.pass.key -out server.keyStep 3: Generate CSR (Certificate Signing Request)
# req Generate certificate signing request# -new new generation# -key private key file# -out Generated CSR file# -subj Parameters for generating CSR certificateopenssl req -new -key server.key -out server.csr -subj "/C=CN/ST=Guangdong/L=Guangzhou/O=xdevops/OU=xdevops/CN=gitlab.xdevops.cn"Step 4: Generate a Self-Signed SSL Certificate
# -days certificate validity periodopenssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crtEdit the following configuration in the file and save:
# listen portListen 443 https# server domain nameServerName localhost# Server signing certificate fileSSLCertificateFile /data/ssl/server.crt# server key fileSSLCertificateKeyFile /data/ssl/server.key# CA certificate (two-way authentication)# SSLCACertificateFile /data/ssl/ca/ca.pem边栏推荐
- 【redis】发布和订阅消息
- The JVM a class loader
- 以后面试官问你 为啥不建议使用Select *,请你大声回答他!
- Sliding window method to segment data
- 技能大赛训练题:登录安全加固
- LeetCode只出现一次的数字
- 已解决(pymysqL连接数据库报错)pymysqL.err.ProgrammingError: (1146,“Table ‘test.students‘ doesn‘t exist“)
- Usage of += in C#
- Nuget打包并上传教程
- Detailed explanation of network protocols and related technologies
猜你喜欢

232层3D闪存芯片来了:单片容量2TB,传输速度提高50%

Motion capture system for end-positioning control of flexible manipulators

endnote引用

1小时直播招募令:行业大咖干货分享,企业报名开启丨量子位·视点

DELL SC compellent 康贝存储系统怎么抓取配置信息

For enterprises in the digital age, data governance is difficult, but it should be done

Shang Silicon Valley-JVM-Memory and Garbage Collection (P1~P203)

尚硅谷-JVM-内存和垃圾回收篇(P1~P203)

IDEA connects to MySQL database and uses data

3.爬虫之Scrapy框架1安装与使用
随机推荐
IDEA can't find the Database solution
Open Inventor 10.12 重大改进--和谐版
Unity study notes Description of AVPro video jump function (Seeking)
“听我说谢谢你”还能用古诗来说?清华搞了个“据意查句”神器,一键搜索你想要的名言警句...
How IDEA runs web programs
Open Inventor 10.12 Major Improvements - Harmony Edition
最新完整代码:使用word2vec预训练模型进行增量训练(两种保存方式对应的两种加载方式)适用gensim各种版本
百度网盘安装在c盘显示系统权限限制的解决方法
A detailed explanation of the usage of Async and Await in C#
【Pytorch】F.softmax()方法说明
Controller层代码这么写,简洁又优雅!
Miller_Rabin 米勒拉宾概率筛【模板】
Detailed explanation of network protocols and related technologies
An article makes it clear!What is the difference and connection between database and data warehouse?
Miller_Rabin Miller Rabin probability sieve [template]
【Pytorch】torch.argmax()用法
LeetCode·304竞赛·6132·使数组中所有元素都等于零·模拟·哈希
The Selenium IDE of the Selenium test automation
Shell脚本经典案例:文件的备份
LeetCode旋转数组