Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Certificate related commands (personal retention)

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Openssl genrsa-des3-out ca1.key 2048 generate user key

Openssl rsa-in ca1.key-out ca1.key remove key's password

Openssl req-new-key ca1.key-out ca1.csr-config openssl.cnf generates csr file

Openssl ca-in user1.csr-out user1.crt-cert ca0.crt-keyfile ca0.key-config openssl.cnf signature csr file

Openssl req-new-x509-keyout ca1_0.key-out ca1_0.crt-config openssl.cnf self-generated root certificate

Openssl ca-revoke ca1_1.crt

Openssl ca-gencrl-out ca1_1crl

Openssl pkcs12-in root.pfx-nodes-out root.pem # generates all the contents in plaintext

Openssl rsa-in root.pem-out root.key # fetch key file

Openssl x509-in root.pem-out root.crt # take the certificate

Openssl pkcs12-export-inkey root.key-in root.crt-out root.pfx # synthetic pfx format

.cer / .crt is used to store certificates, which are stored in binary form without a private key.

The difference between .pem and crt/cer is that it is represented as Ascii.

Pfx/p12 is used to store personal certificates / private keys. It usually contains protection passwords in binary mode.

P10 is a certificate request

P7r is CA's reply to the certificate request and is only used for import

P7b shows the certificate chain (certificate chain) in a tree, and also supports a single certificate without a private key.

BasicConstraints=critical,CA:TRUE, pathlen:20

Mount-t cifs-o username=administrator / / 192.168.0.11/share / mnt

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.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report