2011-03-07 10 views
28

मेरे पास रूटकर्ट फ़ाइल है और मुझे नहीं पता कि यह .pem प्रारूप में है या नहीं, मैं यह कैसे देख सकता हूं कि यह .pem प्रारूप में है?मैं कैसे जांच सकता हूं कि मेरे पास प्रमाणपत्र फ़ाइल है .pem प्रारूप

+0

उपयोग इस ओ https://8gwifi.org/PemParserFunctions.jsp – anish

उत्तर

28

ए। पेम प्रारूप प्रमाणपत्र सबसे अधिक संभावना ASCII-पठनीय होगा। इसमें -----BEGIN CERTIFICATE----- लाइन होगी, इसके बाद बेस 64-एन्कोडेड डेटा होगा, इसके बाद एक पंक्ति -----END CERTIFICATE----- होगी। पहले या बाद में अन्य लाइनें हो सकती हैं। सहायता पृष्ठ से

36

DER vs. CRT vs. CER vs. PEM Certificates and How To Convert Them

उद्धरण:

View 
==== 

Even though PEM encoded certificates are ASCII they are not human 
readable. Here are some commands that will let you output the 
contents of a certificate in human readable form; 

View PEM encoded certificate 
---------------------------- 

Use the command that has the extension of your certificate replacing 
cert.xxx with the name of your certificate 

openssl x509 -in cert.pem -text -noout 
openssl x509 -in cert.cer -text -noout 
openssl x509 -in cert.crt -text -noout 

If you get the folowing error it means that you are trying to view a DER encoded certifciate and need to use the commands in the “View DER encoded certificate 
below” 

unable to load certificate 
12626:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:647:Expecting: TRUSTED CERTIFICATE View DER encoded Certificate 


View DER encoded Certificate 
---------------------------- 

openssl x509 -in certificate.der -inform der -text -noout 

If you get the following error it means that you are trying to view a PEM encoded certificate with a command meant for DER encoded certs. Use a command in the “View PEM encoded certificate above 

unable to load certificate 
13978:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:1306: 
13978:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:tasn_dec.c:380:Type=X509 
+0

परीक्षण करने के लिए ne। मैं .cer एक्सटेंशन के साथ एक फ़ाइल के साथ काम कर रहा था लेकिन फ़ाइल .der प्रारूप में थी, आपका उत्तर मेरी समस्या का समाधान करता है। – dpineda

0

मैं अगर प्रमाणपत्र फ़ाइल मैं .pem प्रारूप में है

cat फ़ाइल कैसे की जाँच करें और देख सकते हैं पूर्व-encapsulated शीर्षलेख और पोस्ट-encapsulated शीर्षलेख के लिए। पूर्व-encapsulated शीर्षलेख -----BEGIN CERTIFICATE----- या -----BEGIN X509 CERTIFICATE----- है; और पोस्ट-एन्सेप्लेटेड हेडर -----END CERTIFICATE----- या -----END X509 CERTIFICATE----- है।

RFC 1421 में Encapsulated शीर्षलेखों पर चर्चा की जाती है। उन शीर्षकों में वस्तुओं की कोई मानक सूची या व्यापक सूची नहीं है (जैसे CERTIFICATE या X509 CERTIFICATE)। ऑब्जेक्ट प्रकारों की सूची के लिए अधिकांश लोग OpenSSL के pem.h शीर्षलेख का उपयोग करते हैं।

-----BEGIN CERTIFICATE----- 

और पाद:

6

OpenSSL एक PEM प्रारूप के रूप में यह पहचान करने के लिए के लिए, यह Base64 में, निम्नलिखित हेडर के साथ एन्कोड किया जाना चाहिए

-----END CERTIFICATE----- 

इसके अलावा, प्रत्येक पंक्ति अधिकतम होना चाहिए 79 वर्ण लंबा

2675996:error:0906D064:PEM routines:PEM_read_bio:bad base64 decode:pem_lib.c:818: 

नोट:: पीईएम मानक 64 वर्णों के साथ (RFC1421) जनादेश लाइनों नहीं तो आप त्रुटि प्राप्त करेंगे।एक पंक्ति के रूप में जमा एक पीईएम प्रमाण पत्र यूनिक्स कमांड लाइन उपयोगिता

fold -w 64 
1

संदर्भ CRL,CRT,CSR,NEW CSR,PRIVATE KEY, PUBLIC KEY Parser

सीआरएल

-----BEGIN X509 CRL----- 
-----END X509 CRL----- 

सीआरटी

-----BEGIN CERTIFICATE----- 
-----END CERTIFICATE----- 

सीएसआर

साथ परिवर्तित किया जा सकता
-----BEGIN CERTIFICATE REQUEST----- 
-----END CERTIFICATE REQUEST----- 

नई सीएसआर

-----BEGIN NEW CERTIFICATE REQUEST----- 
-----END NEW CERTIFICATE REQUEST----- 

पीईएम

-----END RSA PRIVATE KEY----- 
-----BEGIN RSA PRIVATE KEY----- 

PKCS7

-----BEGIN PKCS7----- 
-----END PKCS7----- 

निजी कुंजी

-----BEGIN PRIVATE KEY----- 
-----END PRIVATE KEY----- 
संबंधित मुद्दे

 संबंधित मुद्दे