xref: /dragonfly/contrib/file/magic/Magdir/ssl (revision c69bf40f)
1
2#------------------------------------------------------------------------------
3# $File: ssl,v 1.4 2017/01/22 21:14:25 christos Exp $
4# ssl:  file(1) magic for SSL file formats
5
6# Type: OpenSSL certificates/key files
7# From: Nicolas Collignon <tsointsoin@gmail.com>
8
90	string	-----BEGIN\040CERTIFICATE-----	PEM certificate
100	string	-----BEGIN\040CERTIFICATE\040REQ	PEM certificate request
110	string	-----BEGIN\040RSA\040PRIVATE	PEM RSA private key
120	string	-----BEGIN\040DSA\040PRIVATE	PEM DSA private key
130	string	-----BEGIN\040EC\040PRIVATE	PEM EC private key
140	string	-----BEGIN\040ECDSA\040PRIVATE	PEM ECDSA private key
15
16# From Luc Gommans
17# OpenSSL enc file (recognized by a magic string preceding the password's salt)
180	string	Salted__	openssl enc'd data with salted password
19# Using the -a or -base64 option, OpenSSL will base64-encode the data.
200	string U2FsdGVkX19	openssl enc'd data with salted password, base64 encoded
21