In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Openssl generates certificates
[nginx@machina key] $pwd
/ app/nginx/key
Generate a private key
Openssl genrsa-out server.key 2048 generates a certificate request
Openssl req-new-key server.key-out server.csr fill in the information [nginx@machina key] $openssl req-new-key server.key-out server.csrYou are about to be asked to enter information that will be incorporatedinto your certificate request.What you are about to enter is what is called a Distinguished Name ora DN.There are quite a few fields but you can leave some blankFor some fields there will be a default value,If you enter'. The field will be left blank.-Country Name (2 letter code) [XX]: cnState or Province Name (full name) []: gdLocality Name (eg, city) [Default City]: gzOrganization Name (eg, company) [Default Company Ltd]: aiOrganizational Unit Name (eg, section) []: aiCommon Name (eg, your name or your server's hostname) []: 112.96.28.206Email Address []:
Please enter the following 'extra' attributes
To be sent with your certificate request
A challenge password []:
An optional company name []:
[nginx@machina key] $
[nginx@machina key] $ls
Old server.csr server.key
4. Back up a server key file cp server.key server.key.org5. Remove the file password openssl rsa-in server.key.org-out server.key6. Generate certificate file server.crtopenssl x509-req-days 365-in server.csr-signkey server.key-out server.crt
[nginx@machina key] $openssl rsa-in server.key.org-out server.key
Writing RSA key
[nginx@machina key] $
[nginx@machina key] $openssl x509-req-days 365-in server.csr-signkey server.key-out server.crt
Signature ok
Subject=/C=cn/ST=gd/L=gz/O=ai/OU=ai/CN=112.96.28.206
Getting Private key
Generally speaking, it only takes three steps: 1. Openssl genrsa-out server.key 20482. Openssl req-new-key server.key-out server.csr3. Openssl x509-req-days 365-in server.csr-signkey server.key-out server.crt about the password: openssl genrsa-out server.key 2048 does not need a password. Openssl genrsa-des3-out server.key 2048 requires a password. Https://www.jianshu.com/p/9523d888cf77 about domain name: use openssl, domain name can not be lost; with keystore, you must enter.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.