当前位置:网站首页>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 .
边栏推荐
- Anesthesia is not as simple as "one injection". Painless, safe and comfortable anesthesia is the first choice for patients
- Metaq installation deployment document
- WPF video hard decoding, rendering and playing (no airspace) (support 4K, 8K and high frame rate video)
- CSDN Blogger
- TDengine ×英特尔 边缘洞见软件包 加速传统行业的数字化转型
- 通达信能开户炒股吗?安全吗?
- win10用cmake3.22与vs2019编译curl库源码并调用
- "Jay bear" plummeted by 96.6%. Why is NFT with star goods cold?
- 2022年化工自动化控制仪表考试模拟100题模拟考试平台操作
- Squid proxy server application (I came from afar to make an appointment with you)
猜你喜欢

Redis持久化(少年一貫快馬揚帆,道阻且長不轉彎)

第四个专栏,Kubernetes云原生实战,它来了~

2022 review questions and answers for safety production management personnel of hazardous chemical production units

2022年山东省安全员C证考试练习题及模拟考试

Gestion des journaux sauvegarde et récupération des journaux dans MySQL
![[algorithm] I brushed two big factory interview questions and learned array again with tears in my eyes“](/img/ab/69c79690bf42c58c39b2e85fb3690c.png)
[algorithm] I brushed two big factory interview questions and learned array again with tears in my eyes“

Problems encountered in local deployment conflict: MySQL database code, isolation level and verification code are not displayed

The fourth largest operator cannot be a "catfish"

Redis主从复制、哨兵、cluster集群原理+实验(好好等,会晚些,但会更好)

MySQL high availability MHA (accidentally passed my youth)
随机推荐
2022起重机械指挥考试题库模拟考试平台操作
Pure big resentment! Those who were discouraged from taking the postgraduate entrance examination
全网最全360无死角编写软件测试用例模板【建议收藏】
为什么 insert 配置 'SELECT LAST_INSERT_ID()' 返回个0呢?
Anesthesia is not as simple as "one injection". Painless, safe and comfortable anesthesia is the first choice for patients
The most complete 360 software test case template without dead corners in the whole network [recommended collection]
[official cooperation between Shang Silicon Valley and Tencent cloud] video release of Silicon Valley classroom project
Time effective simulation platform based on dataworks | acquisition technology
Use PEGA to develop a simple RPA program
HTNL简介
问下 flink sql cdc. 能同步多张表然后sink到一份表中么 同步的表通过 joi
Batch modify specified character file name bat script
Does rapid software delivery really need to be at the cost of security?
[tcapulusdb knowledge base] modify business modify cluster
全力冲unreal了
The processor of this virtual machine supports different functions than the processor of the virtual machine that holds the state of the virtual machine
Summary and Thinking on interface test automation
Visio use
MySQL中的日志管理 日志備份與恢複
MySQL高可用之MHA(一不小心和我的青春擦肩而過)