summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2017-01-18 14:59:19 +0000
committerChristos Zoulas <christos@zoulas.com>2017-01-18 14:59:19 +0000
commit4e1d2a8fd1a5f18675063cb04be270053dd8b033 (patch)
treeecef26ff69e6cd237fa9f743fa45323abaeb90b5
parent0d5b8aa1b5139ca166b354648f15ae7d895b5cfe (diff)
downloadfile-git-4e1d2a8fd1a5f18675063cb04be270053dd8b033.tar.gz
PR/587: Luc Gommans: Add OpenSSL files
-rw-r--r--magic/Magdir/ssl11
1 files changed, 11 insertions, 0 deletions
diff --git a/magic/Magdir/ssl b/magic/Magdir/ssl
index 5d5daeea..9e59ef6a 100644
--- a/magic/Magdir/ssl
+++ b/magic/Magdir/ssl
@@ -1,3 +1,8 @@
+
+#------------------------------------------------------------------------------
+# $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>
@@ -6,3 +11,9 @@
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