In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
How to convert .pfx certificate format into .key and .crt files, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
I didn't know what .pfx was before, so let's briefly explain several formats of certificates:
1. Certificate with private key
Defined by Public Key Cryptography Standards # 12 (Standard 12 of Public key encryption Technology), the PKCS#12 standard, it contains certificates in binary form of public and private keys, with pfx as the suffix name of the certificate file.
two。 Binary coded certificate
There is no private key in the certificate, and DER encodes the certificate file in binary format, with cer as the suffix of the certificate file.
3.Base64-encoded certificate
There is no private key in the certificate, and the certificate file in BASE64 format also uses cer as the suffix of the certificate file.
Now let's explain how to transfer .key and .crt files in .pfx certificate format:
Take the Linux system as an example (of course, if the openssl command is installed on Windows, it can be used normally):
Execute the following command under Linux:
(1) convert the certificate in .pfx format to .pem file format:
Openssl pkcs12-in xxx.pfx-nodes-out server.pem
(2) Export the private key server.key from the .pem file:
Openssl rsa-in server.pem-out server.key
(3) Export certificate server.crt from .pem file
Openssl x509-in server.pem-out server.crt
This is the answer to the question about how to convert .pfx certificate format to .key and .crt files. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.
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.