Add PKCS#7 extensions to supported file types

Added '.p7s' and '.pkcs7' to the list of well-known certificate-related extensions in the CertViewer plugin to support PKCS#7 detached signature files.
This commit is contained in:
ema
2026-01-12 10:19:34 +08:00
parent be7f0f3dc9
commit 5bb9c792ff
2 changed files with 3 additions and 2 deletions

View File

@@ -68,10 +68,10 @@
RowHeaderWidth="0">
<DataGrid.Columns>
<DataGridTextColumn Width="150"
Binding="{Binding Key}"
Binding="{Binding Key, Mode=OneWay}"
Header="Field" />
<DataGridTextColumn Width="*"
Binding="{Binding Value}"
Binding="{Binding Value, Mode=OneWay}"
Header="Value" />
</DataGrid.Columns>
</DataGrid>

View File

@@ -10,6 +10,7 @@ public sealed class Plugin : IViewer
{
private static readonly HashSet<string> WellKnownExtensions = new(StringComparer.OrdinalIgnoreCase)
{
".p7s", ".pkcs7", // PKCS #7 detached signature (signature only, no original content)
".p12", // PKCS #12 certificate store (usually contains certificate and private key)
".pfx", // PKCS #12 certificate store (similar to .p12, common on Windows)
".cer", // Certificate file (DER or PEM encoded, usually contains only the public certificate)