summaryrefslogtreecommitdiff
path: root/magic/Magdir/ssl
blob: 9e59ef6a1e0868b48112c718220aeabf8ee746ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

#------------------------------------------------------------------------------
# $File: ssl,v 1.3 2017/01/18 14:59:19 christos Exp $
# ssl:  file(1) magic for SSL file formats

# Type: OpenSSL certificates/key files
# From: Nicolas Collignon <tsointsoin@gmail.com>

0	string	-----BEGIN\ CERTIFICATE-----	PEM certificate
0	string	-----BEGIN\ CERTIFICATE\ REQ	PEM certificate request
0	string	-----BEGIN\ RSA\ PRIVATE	PEM RSA private key
0	string	-----BEGIN\ DSA\ PRIVATE	PEM DSA private key
0	string	-----BEGIN\ EC\ PRIVATE	PEM EC private key

# From Luc Gommans
# OpenSSL enc file (recognized by a magic string preceding the password's salt)
0	string	Salted__	openssl enc'd data with salted password
# Using the -a or -base64 option, OpenSSL will base64-encode the data.
0	string U2FsdGVkX19	openssl enc'd data with salted password, base64 encoded