summaryrefslogtreecommitdiff
path: root/gcr-gtk3/gcr-crypto-types.xml
blob: 2f402c92e5ccd2ed7a27608b04db18e48528270b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">

	<!-- Non standard: Common practice -->
	<mime-type type="application/x-pem-file">
		<comment>Openssl PEM format</comment>
		<acronym>PEM</acronym>
		<sub-class-of type="text/plain"/>
		<glob weight="50" pattern="*.pem"/>
	</mime-type>

	<!--  Defined in: http://www.ietf.org/rfc/rfc2585.txt -->
	<mime-type type="application/pkix-cert">
		<comment>X.509 Certificate</comment>
		<glob weight="75" pattern="*.cer"/>

		<!-- Non standard: Common practice -->
		<glob weight="55" pattern="*.crt"/>
		<glob weight="55" pattern="*.cert"/>

		<!-- Non standard: Common practice -->
		<alias type="application/x-x509-ca-cert"/>
		<alias type="application/x-x509-user-cert"/>
	</mime-type>

	<!-- Non standard: OpenSSL PEM format -->
	<mime-type type="application/pkix-cert+pem">
		<comment>X.509 Certificate in PEM format</comment>
		<sub-class-of type="application/x-pem-file"/>
		<magic priority="75">
			<match type="string" value="-----BEGIN CERTIFICATE-----" offset="0"/>
		</magic>
	</mime-type>

	<!-- Defined in: http://www.ietf.org/rfc/rfc2585.txt -->
	<mime-type type="application/pkix-crl">
		<comment>Certificate Revocation List</comment>
		<acronym>CRL</acronym>
		<expanded-acronym>Certificate Revocation List</expanded-acronym>
		<glob weight="75" pattern="*.crl"/>
	</mime-type>

	<!-- Non standard: OpenSSL PEM format -->
	<mime-type type="application/pkix-crl+pem">
		<comment>Certificate Revocation List in PEM format</comment>
		<sub-class-of type="application/x-pem-file"/>
		<magic priority="75">
			<match type="string" value="-----BEGIN X509 CRL-----" offset="0"/>
		</magic>
	</mime-type>

	<!-- Non standard: Common practice -->
	<mime-type type="application/x-pkcs12">
		<comment>PKCS#12 Personal Key and Certificates</comment>
		<acronym>PKCS#12</acronym>
		<glob weight="75" pattern="*.p12"/>

		<!-- Non standard: Microsoft practice -->
		<glob weight="55" pattern="*.pfx"/>

		<!-- Non standard: Rare practice, unclear this actually got into a spec -->
		<alias type="application/pkcs12"/>
	</mime-type>

	<!-- Non standard: OpenSSL PEM format -->
	<mime-type type="application/pkcs12+pem">
		<comment>PKCS#12 Personal Key and Certificates in PEM format</comment>
		<sub-class-of type="application/x-pem-file"/>
		<magic priority="75">
			<match type="string" value="-----BEGIN PKCS12-----" offset="0"/>
		</magic>
	</mime-type>

	<!-- Defined in: http://www.ietf.org/rfc/rfc5958.txt -->
	<mime-type type="application/pkcs8">
		<comment>PKCS#8 Personal Key</comment>
		<acronym>PKCS#8</acronym>
		<glob weight="75" pattern="*.p8"/>

		<!-- Non standard: Gnome keyring practice -->
		<glob weight="55" pattern="*.pkcs8"/>
	</mime-type>

	<!-- Non standard: OpenSSL PEM format -->
	<mime-type type="application/pkcs8+pem">
		<comment>PKCS#8 Personal Key in PEM format</comment>
		<sub-class-of type="application/x-pem-file"/>
		<magic priority="75">
			<match type="string" value="-----BEGIN PRIVATE KEY-----" offset="0"/>
			<match type="string" value="-----BEGIN ENCRYPTED PRIVATE KEY-----" offset="0"/>
		</magic>
	</mime-type>

	<!-- Defined in: http://www.ietf.org/rfc/rfc2311.txt -->
	<mime-type type="application/pkcs7-mime">
		<comment>PKCS#7 Message and Certificates</comment>
		<acronym>PKCS#7</acronym>
		<glob pattern="*.p7c"/>
		<glob pattern="*.p7m"/>

		<!-- Not standard: Microsoft practice -->
		<glob pattern="*.spc"/>
		<glob pattern="*.p7b"/>

		<!-- Non standard: Microsoft practice -->
		<alias type="application/x-pkcs7-certificates"/>
	</mime-type>

	<!-- Non standard: OpenSSL PEM format -->
	<mime-type type="application/pkcs7-mime+pem">
		<comment>PKCS#7 Message and Certificates in PEM format</comment>
		<sub-class-of type="application/x-pem-file"/>
		<magic priority="75">
			<match type="string" value="-----BEGIN PKCS7-----" offset="0"/>
		</magic>
	</mime-type>

	<!-- Defined in http://www.ietf.org/rfc/rfc2311.txt -->
	<mime-type type="application/pkcs7-signature">
		<comment>PKCS#7 Signature</comment>
		<acronym>PKCS#7</acronym>
		<glob pattern="*.p7s"/>
	</mime-type>

	<!-- Defined in http://www.ietf.org/rfc/rfc2311.txt -->
	<mime-type type="application/pkcs10">
		<comment>PKCS#10 Certificate Request</comment>
		<acronym>PKCS#10</acronym>
		<glob pattern="*.p10"/>
		<glob pattern="*.csr"/>
	</mime-type>

	<!-- Non standard: OpenSSL PEM format -->
	<mime-type type="application/pkcs10+pem">
		<comment>PKCS#10 Certificate Request in PEM format</comment>
		<sub-class-of type="application/x-pem-file"/>
		<magic priority="75">
			<match type="string" value="-----BEGIN CERTIFICATE REQUEST-----" offset="0"/>
			<match type="string" value="-----BEGIN NEW CERTIFICATE REQUEST-----" offset="0"/>
		</magic>
	</mime-type>

	<!-- Non standard: SPKAC DER format -->
	<mime-type type="application/x-spkac">
		<comment>SPKAC Certificate Request</comment>
		<glob pattern="*.spkac"/>
	</mime-type>

	<!-- Non standard: SPKAC DER format -->
	<mime-type type="application/x-spkac+base64">
		<comment>SPKAC Certificate Request in OpenSSL format</comment>
		<sub-class-of type="text/plain"/>
		<magic priority="75">
			<match type="string" value="SPKAC=" offset="0"/>
		</magic>
	</mime-type>

	<!-- Non standard: OpenSSL PEM format -->
	<mime-type type="application/x-pem-key">
		<comment>Private Key in PEM format</comment>
		<sub-class-of type="application/x-pem-file"/>
		<magic priority="75">
			<match type="string" value="-----BEGIN RSA PRIVATE KEY-----" offset="0"/>
			<match type="string" value="-----BEGIN DSA PRIVATE KEY-----" offset="0"/>
			<match type="string" value="-----BEGIN EC PRIVATE KEY-----" offset="0"/>
		</magic>
	</mime-type>
</mime-info>