.CRT

CRT File

Security certificate (X.509 .crt)
Ask a question
QUICK ANSWER

A CRT file is an X.509 digital certificate that ties an identity (a website, server, or publisher) to a public key, signed by a Certificate Authority. On Windows, double-click it to view the issuer, validity dates, and purpose, then install it into the certificate store if needed. It holds only a public key - it is safe to view and share, and cannot execute code.

Developer: ITU-T / IETF (X.509 PKI standard); the .crt convention is common on Unix/Linux and web servers Category: Security / Certificate Files Open standard MIME: application/x-x509-ca-cert
OPENS ON Windows macOS Linux
Related: .PEM · .P7M · .CER · .REQ

On this page

19k+ extensions indexed
Last reviewed Aug 4, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the CRT file format?

Security certificates used by secure websites are saved on the server to enable encrypted connections in files with the .crt extension. Security certificates allow secure data transfer, login authentication, payments, and safe web browsing. .crt files conform to the PEM standard or use binary DER encoding - the extension alone does not tell you which format is in use.

.crt file structure

.crt files adhere to the X.509 certificate standard and may use one of two encodings. The more common PEM form uses Base64 ASCII text. Each PEM-encoded .crt file contains the following:

  • header: -----BEGIN CERTIFICATE-----
  • Base64-encoded DER certificate data
  • footer: -----END CERTIFICATE-----

Binary .crt files use raw DER encoding and begin with the ASN.1 SEQUENCE bytes 0x30 0x82. To tell them apart, open the file in a text editor - PEM is human-readable, DER is not.

.crt files for websites

.crt files are stored server-side. A website with a valid TLS/SSL certificate, issued by a trusted certificate authority such as DigiCert or Let's Encrypt, will be trusted by the browser, which indicates this with a padlock icon in the address bar. Users can inspect the certificate to view the holder's identity and expiration date. .crt files are interchangeable with .cer files - .crt is the common convention on Unix/Linux and Apache servers, while .cer is more common on Windows. A .crt holds only the public certificate; the matching private key is stored separately in a .key or .pfx file.

Security & safety

RISK: LOW

A .crt normally contains only a PUBLIC certificate - it's safe to view and share, and can't execute. The real caution is about TRUST, not malware: installing a certificate into your trust store tells your system to trust whoever it identifies, so only install a root/CA certificate from a source you trust (an unexpected 'install this certificate' request can be an attempt to intercept your encrypted traffic). Also don't confuse a .crt (public) with a .pfx/.p12 or a .key/.pem private key, which ARE secret and must never be shared or uploaded to online converters. Check a certificate's issuer and expiry before relying on it, and inspect/convert locally with OpenSSL rather than online certificate tools.

Format details

in a nutshell
FULL NAMESecurity certificate (X.509 .crt)aka Certificate file, SSL certificate
DEVELOPERITU-T / IETF (X.509 PKI standard); the .crt convention is common on Unix/Linux and web serverssince X.509 first published 1988 (ITU-T); .crt is a long-standing certificate extension on Unix/Apache
MIME TYPEapplication/x-x509-ca-cert
TYPEX.509 public-key certificate - binary DER or Base64 PEM encoding
STANDARDOpen · royalty-free
MAGIC BYTES · FILE SIGNATURE
OFFSET
0001
HEX
3082
ASCII
0·
A .crt holds an X.509 certificate in one of two encodings, and the extension does NOT tell you which: DER (binary) begins with the ASN.1 SEQUENCE tag 0x30 0x82; PEM (text) begins with the ASCII line '-----BEGIN CERTIFICATE-----' followed by Base64. Open it as text to tell them apart - PEM is readable, DER is binary. The same certificate may carry .crt, .cer, .der or .pem extensions.

Programs that open CRT files

Windows3 apps
OpenSSL Open-source Inspect: 'openssl x509 -in cert.crt -text -noout' (add -inform der for a binary .crt). Convert DER<->PEM and bundle into .pfx. The universal certificate tool.
Windows Crypto Shell / certmgr (built-in) Built-in Double-click the .crt to open the certificate viewer (issuer, validity, purpose). Click 'Install Certificate' to add it to the store, or manage via certmgr.msc.
Notepad / any text editor Open-source Open the .crt as text: if you see '-----BEGIN CERTIFICATE-----' it's PEM (readable Base64); if it's binary gibberish it's DER. Helps decide how to convert it.
macOS2 apps
Keychain Access (built-in) Built-in Double-click the .crt to view it and import/trust it in the keychain. macOS shows issuer, validity and trust settings.
OpenSSL / LibreSSL Open-source In Terminal: 'openssl x509 -in cert.crt -text -noout' to inspect, or convert formats. Pre-installed on macOS (LibreSSL).
Linux2 apps
OpenSSL Open-source Pre-installed: 'openssl x509 -in cert.crt -text -noout' (add -inform der for binary), or convert DER<->PEM for Apache/Nginx. The standard way to handle certificates.
GNOME/KDE certificate viewers Built-in Double-click a .crt in the file manager to open the desktop certificate viewer, or import it into the system trust store (update-ca-certificates).

Technical details

deep spec
EncodingBinary (DER) or Base64 text (PEM) - the .crt extension does not indicate which; open in a text editor to distinguish
MIME typeapplication/x-x509-ca-cert (primary); also application/pkix-cert and application/x-x509-user-cert
Container structureASN.1 DER SEQUENCE encoding subject, issuer, public key, validity period, v3 extensions (SANs, key usage) and the CA's digital signature
PEM markerText line -----BEGIN CERTIFICATE----- at file start (ASCII/UTF-8)
DER magic bytes0x30 0x82 at offset 0 - ASN.1 SEQUENCE tag followed by a 2-byte length
Certificate versionX.509 v1, v2 or v3; v3 is universal in modern use and required for Subject Alternative Names and key usage extensions
Certificate contentPublic certificate only - subject name, issuer, public key, validity dates and CA signature; private key is never stored here
Signature algorithmTypically sha256WithRSAEncryption or ecdsa-with-SHA256; older files may carry sha1WithRSAEncryption (deprecated and rejected by modern browsers)
Integrity mechanismCA digital signature over TBSCertificate; any byte change invalidates the signature and causes TLS handshake failure
Typical file size1 KB - 4 KB for a single certificate; several KB larger when a full certificate chain is concatenated
CompressionNone - certificate data is stored uncompressed
EncryptionNone - the certificate is intentionally public; private keys require .key, .pfx or .p12 files
Platform supportWindows, macOS, Linux, Android, iOS and any TLS-capable system or runtime
Common usesHTTPS/TLS server authentication, code signing, email encryption (S/MIME), client certificate authentication
Interchangeable extensions.crt (Unix/Linux/Apache convention) and .cer (Windows convention) name the same X.509 format; .pem and .der name the encoding explicitly
ReleasedX.509 first published 1988 (ITU-T); .crt is a long-standing certificate extension on Unix/Apache
Latest versionX.509 v3 (RFC 5280, 2008); PEM text encoding codified in RFC 7468 (2015)
Open standardYes · royalty-free
Specificationdatatracker.ietf.org

CRT conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with CRT files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about CRT files.

Frequently asked questions

What is a .crt file?
A digital security certificate in the X.509 standard. It binds an identity (a website, server, person or software publisher) to a public key and is signed by a Certificate Authority, so software can verify it's genuine. It's the kind of certificate behind the HTTPS padlock.
How do I open a .crt file on Windows?
Double-click it to open the Windows certificate viewer, which shows the issuer, validity dates and intended use. From there you can choose 'Install Certificate' to add it to the certificate store.
What's the difference between .crt and .cer?
Practically nothing - both label an X.509 certificate. .crt is the more common Unix/Apache convention, .cer the more common Windows one. The real difference is the encoding inside (DER binary vs PEM Base64 text), which the extension doesn't fix.
How do I convert a .crt to .pem?
If it's binary DER: 'openssl x509 -inform der -in cert.crt -out cert.pem -outform pem'. If it's already Base64 text (starts with -----BEGIN CERTIFICATE-----), it's effectively PEM already - just rename it.
Is a .crt file safe to open or share?
Yes - viewing is safe, and a .crt normally holds only the public certificate, which is meant to be shared. Be careful only about installing/trusting a certificate from an untrusted source, and never confuse it with a private-key file (.pfx/.p12/.key), which is secret.
How do I install a .crt on an Apache/Nginx web server?
Reference the certificate (and chain) plus the private key in the server config - Apache: SSLCertificateFile/SSLCertificateKeyFile; Nginx: ssl_certificate/ssl_certificate_key. The .crt must be PEM-encoded for both; convert from DER with OpenSSL if needed.

References

1RFC 5280 - X.509 Public Key Infrastructure Certificatedatatracker.ietf.org
2RFC 7468 - Textual Encodings of PKIX/PKCS/CMS (PEM)www.rfc-editor.org

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.BCBitComet Incomplete Download File
3.PARTPartial Download File
4.CRDOWNLOADChrome Partial Download File
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.MDMarkdown Document
8.AVIFAV1 Image File Format (AVIF)
9.NOMEDIAAndroid No-Media Marker File
10.RPMSGRestricted Permission Message

Related extensions

.PEMPEM - Base64-encoded certificate / key container (X.509, PKCS)
.P7MPKCS#7 / S/MIME Message (digitally signed or encrypted)
.CERSecurity certificate (X.509 .cer)
.REQCertificate Signing Request (CSR) - .req
.CSRCertificate Signing Request (PKCS#10)

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z