Skip to content

Commit f995317

Browse files
committed
Add comments to certificate file extensions
Added descriptive comments to each file extension in the WellKnownExtensions set to clarify the type and usage of each supported certificate-related file.
1 parent e233496 commit f995317

File tree

1 file changed

+12
-12
lines changed
  • QuickLook.Plugin/QuickLook.Plugin.CertViewer

1 file changed

+12
-12
lines changed

QuickLook.Plugin/QuickLook.Plugin.CertViewer/Plugin.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ public class Plugin : IViewer
1010
{
1111
private static readonly HashSet<string> WellKnownExtensions = new(StringComparer.OrdinalIgnoreCase)
1212
{
13-
".p12",
14-
".pfx",
15-
".cer",
16-
".crt",
17-
".pem",
18-
".snk",
19-
".pvk",
20-
".spc",
21-
".mobileprovision",
22-
".certSigningRequest",
23-
".csr",
24-
".keystore",
13+
".p12", // PKCS #12 certificate store (usually contains certificate and private key)
14+
".pfx", // PKCS #12 certificate store (similar to .p12, common on Windows)
15+
".cer", // Certificate file (DER or PEM encoded, usually contains only the public certificate)
16+
".crt", // Certificate file (similar to .cer, common on UNIX/Linux)
17+
".pem", // PEM encoded certificate or key file (can contain certificate, private key, or CA chain)
18+
".snk", // Strong Name Key file (.NET strong name key pair)
19+
".pvk", // Private key file (usually used with .spc)
20+
".spc", // Software Publisher Certificate
21+
".mobileprovision", // Apple mobile device provisioning profile (contains certificates, public keys, etc.)
22+
".certSigningRequest", // Certificate Signing Request (usually .csr)
23+
".csr", // Certificate Signing Request
24+
".keystore", // Java keystore file (usually stores certificates and private keys)
2525
};
2626

2727
private CertViewerControl _control;

0 commit comments

Comments
 (0)