当前位置:网站首页>How to create a CSR (certificate signing request) file?
How to create a CSR (certificate signing request) file?
2022-06-28 17:50:00 【Hua Weiyun】
Before applying for a digital certificate , You must write the key file of the certificate and CSR file .CSR File is the original file of your public key certificate , Contains your server information and your company information , It needs to be submitted to CA Certification Center to audit . It is recommended that you use CSR file , Avoid the audit failure caused by input information error . If you choose to generate manually CSR file , Be sure to keep and back up your key file . Generate... Manually CSR The following information should be paid attention to when the file is :
The input Chinese information needs to use UTF-8 Coding format , At the same time, you need to edit OpenSSL Tool time , Designated support UTF-8 Coding format .
Certificate services system pair CSR There are strict requirements for the key length of the file , The key length must be 2048bit, The key type must be RSA. If the application certificate is a multi domain name or generic subdomain name , stay Common Name or What is your first and last name? You only need to enter a domain name in the area .
The following is generated using different tools CSR Details of the document .
explain : If you need to input Chinese information , It is recommended to use Keytool Tool generation CSR file .
Use OpenSSL Tool generation CSR file
logon server .
install OpenSSL Tools .
Execute the following command , Generate CSR file .
opensslreq-new-nodes-sha256-newkeyrsa:2048-keyout[$Key_File]-out[$OpenSSL_CSR]
explain :
-new: Specify to generate a new CSR file .
-nodes: Specifies that the key file is not encrypted .
-sha256: Specify the digest algorithm .
-newkey rsa:2048: Specify the key type and length .
[$Key_File]: Key file name .
[$OpenSSL_CSR]: The storage path of encrypted files .
The system displays something similar to .

According to the prompt returned by the system , Input generation CSR Information required for the file . The following is a description of the prompt :
Organization Name: Corporate name , It can be Chinese or English .
Organization Unit Name: Department name , It can be Chinese or English .
Country Code: The country of the applicant , It can only be a two letter country code . for example , China can only be CN.
State or Province: The name of a state or province , It can be Chinese or English .
Locality: The city name , It can be Chinese or English .
Common Name: apply SSL certificate Specific website domain name .
Email Address: You can choose not to enter .
A challenge password: You can choose not to enter .
5、 When you finish entering the command prompt , Get the key file and in the current directory CSR file .
Use Keytool Tool generation CSR file
1、 logon server .
2、 install Keytool Tools .
explain :Keytool Tools are generally included in JDK In the toolkit .
3、 Execute the following command , Generate keystore Certificate file .
keytool -genkey -alias [$Alias] -keyalg RSA -keysize 2048 -keystore [$Keytool_Path]
explain :
-keyalg: Key type .
-keysize: The key length is 2048bit.
[$Alias]: Certificate alias , Customizable .
[$Keytool_Path]: Save path of certificate file .
4、 According to the prompt returned by the system , Enter the certificate protection password .
5、 According to the prompt returned by the system , Input generation CSR Information required for the file . The following is a description of the prompt :
first and last name: The domain name of the certificate .
name of your organizational unit: Department name .
name of your organization: Corporate name .
name of your City or Locality: The city name .
name of your State or Province: The name of a state or province .
two-letter country code for this unit: Two character ISO Country code .
6、 Confirm whether the input is correct , Input Y Said right .
7、 Follow the prompts to enter the key password .
8、 Execute the following command , Generate CSR file .
keytool -certreq -sigalg SHA256withRSA -alias [$Alias] -keystore [$Keytool_Path] -file [$Keytool_CSR]
explain :
sigalg: Abstract algorithm .
[$Keytool_CSR]:CSR File storage path .
9、 Follow the prompts to enter the certificate password , Generate CSR file .
边栏推荐
- MySQL中的日志管理 日志備份與恢複
- 国内怎么就做不出 IDEA 那样的产品?
- MySQL High available MHA (accidentellement avec ma jeunesse)
- Problems encountered in local deployment conflict: MySQL database code, isolation level and verification code are not displayed
- 数字化转型中,企业设备管理会出现什么问题?JNPF或将是“最优解”
- IP problem occurs when a virtual system is cloned in VirtualBox
- NP tips: random create random matrix sample = np random. random([19, 64 , 64, 3])
- Use PEGA to develop a simple RPA program
- The most complete 360 software test case template without dead corners in the whole network [recommended collection]
- 数据源只能连阿里云的云数据库吗?阿里云服务器里装的数据库连不上嘛?
猜你喜欢

2022a special equipment related management (elevator) special operation certificate examination question bank and online simulation examination

麻醉不止“打一针”那么简单,无痛、安全、舒适为患者首选

MySQL high availability MHA (accidentally passed my youth)

TDengine  × Intel edge insight software package accelerates the digital transformation of traditional industries

2022危险化学品经营单位主要负责人复训题库及在线模拟考试

7-user input and while loop

Google launches advanced API security to protect APIs from security threats

2022危险化学品生产单位安全生产管理人员复习题及答案

2022 chemical automation control instrument test simulation 100 questions simulation test platform operation

NoSQL redis configuration and optimization (I blew the night breeze of Qinhuai River for you when you were not in Nanjing)
随机推荐
Currency circle earthquake: earned 1million last year and lost 5million this year
NoSQL之Redis配置与优化(你不在南京的日子我替你吹了秦淮河的晚风)
Redis持久化(少年一貫快馬揚帆,道阻且長不轉彎)
VirtualBox中克隆了一个虚拟系统出现IP问题
Squid代理服务器应用(我从远方赶来,赴你一面之约)
DNSLog注入
Can tongdaxin open an account for stock trading? Is it safe?
Monitoring remote host with cacti+spine in rhel6.4
How to solve the problem of Caton screen when easycvr plays video?
How to do a good job of gateway high availability protection in the big promotion scenario
Talk about my understanding of image tearing, vertical synchronization, freesync and g-sync
终于辞职了,全职ue了
Does DMS SQL result set export support parameter transfer?
Redis persistence (les adolescents naviguent toujours rapidement, obstruent et ne tournent jamais)
2022A特种设备相关管理(电梯)特种作业证考试题库及在线模拟考试
MySQL High available MHA (accidentellement avec ma jeunesse)
[tcapulusdb knowledge base] modify business modify cluster
[official cooperation between Shang Silicon Valley and Tencent cloud] video release of Silicon Valley classroom project
11 effective ways to enhance WordPress
阿里云服务器里装的mysql是8版本的,是因为dataworks的mysql驱动版本不支持吗?现在提