diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2021-05-30 13:46:37 +0300 |
---|---|---|
committer | David Faure <faure@kde.org> | 2021-06-24 08:52:11 +0000 |
commit | bb91fd9777ebede8420b2168d3d3f85aa7c53d05 (patch) | |
tree | 19d4f18adf11aa361c0d73b189e64169e7c14432 /data | |
parent | 16dc3d8d835af5594d7294fac67defb387a95a70 (diff) | |
download | shared-mime-info-bb91fd9777ebede8420b2168d3d3f85aa7c53d05.tar.gz |
application/x-x509-ca-cert: add magics and test cases
"BEGIN/END CA CERTIFICATE" seems to be a thing, although not that
common. "BEGIN/END TRUSTED CERTIFICATE" is an OpenSSL marker for trusted
certificates, see x509(1).
Diffstat (limited to 'data')
-rw-r--r-- | data/freedesktop.org.xml.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index f617b1af..07c9a574 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -4063,6 +4063,10 @@ command to generate the output files. <mime-type type="application/x-x509-ca-cert"> <comment>DER/PEM/Netscape-encoded X.509 certificate</comment> <generic-icon name="text-x-generic"/> + <magic> + <match type="string" value="-----BEGIN CA CERTIFICATE-----" offset="0"/> + <match type="string" value="-----BEGIN TRUSTED CERTIFICATE-----" offset="0"/> + </magic> <glob pattern="*.der"/> <glob pattern="*.crt"/> <glob pattern="*.cert"/> |