当前位置:网站首页>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边栏推荐
- Introduction to the PartImageNet Semantic Part Segmentation dataset
- MySQL玩到这种程度,难怪大厂抢着要!
- IDEA连接MySQL数据库并使用数据
- 浏览器被hao360劫持解决办法
- 八大排序汇总及其稳定性
- C# using NumericUpDown control
- Shell script classic case: detecting whether a batch of hosts is alive
- ECCV 2022 | 机器人的交互感知与物体操作
- C# control StatusStrip use
- [Niu Ke brush questions - SQL big factory interview questions] NO3. E-commerce scene (some east mall)
猜你喜欢

图像大面积缺失,也能逼真修复,新模型CM-GAN兼顾全局结构和纹理细节

SetoolKit使用指南

49.【拷贝构造函数与重载】

技能大赛dhcp服务训练题
![[Blue Bridge Cup Trial Question 46] Scratch Magnet Game Children's Programming Scratch Blue Bridge Cup Trial Question Explanation](/img/57/f23c21c7ed4b9701a3f6119bfd8493.png)
[Blue Bridge Cup Trial Question 46] Scratch Magnet Game Children's Programming Scratch Blue Bridge Cup Trial Question Explanation

C#高级--委托

The JVM a class loader

Introduction to the PartImageNet Semantic Part Segmentation dataset

4.爬虫之Scrapy框架2数据解析&配置参数&数据持久化&提高Scrapy效率

技能大赛训练题:域用户和组织单元的创建
随机推荐
Redis 】 【 publish and subscribe message
Batch大小不一定是2的n次幂!ML资深学者最新结论
49.【拷贝构造函数与重载】
Open Inventor 10.12 重大改进--和谐版
C# control ListView usage
Unity study notes Description of AVPro video jump function (Seeking)
已解决(pymysqL连接数据库报错)pymysqL.err.ProgrammingError: (1146,“Table ‘test.students‘ doesn‘t exist“)
使用NVM进行node版本切换管理
以后面试官问你 为啥不建议使用Select *,请你大声回答他!
技能大赛训练题:域用户和组织单元的创建
Resolved (pymysqL connect to the database error) pymysqL. Err. ProgrammingError: (1146, "Table" test. Students' doesn 't exist ")
Install the latest pytorch gpu version
The use of C# control CheckBox
ERROR: Failed building wheel for osgeo
The JVM a class loader
Shell项目实战1.系统性能分析
Node version switching management using NVM
The Selenium IDE of the Selenium test automation
LeetCode·每日一题·1161.最大层内元素和·层次遍历
endnote引用