"Fossies" - the Fresh Open Source Software Archive

Member "file-5.35/magic/Magdir/ssl" (29 Dec 2017, 929 Bytes) of package /linux/misc/file-5.35.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "ssl": 5.32_vs_5.33.

    1 
    2 #------------------------------------------------------------------------------
    3 # $File: ssl,v 1.5 2017/12/29 04:00:07 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 
    9 0	string	-----BEGIN\040CERTIFICATE-----	PEM certificate
   10 0	string	-----BEGIN\040CERTIFICATE\040REQ	PEM certificate request
   11 0	string	-----BEGIN\040RSA\040PRIVATE	PEM RSA private key
   12 0	string	-----BEGIN\040DSA\040PRIVATE	PEM DSA private key
   13 0	string	-----BEGIN\040EC\040PRIVATE	PEM EC private key
   14 0	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)
   18 0	string	Salted__	openssl enc'd data with salted password
   19 # Using the -a or -base64 option, OpenSSL will base64-encode the data.
   20 0	string U2FsdGVkX1	openssl enc'd data with salted password, base64 encoded