ssh and ssl key file magic, from file 5.x.
authornicm <nicm@openbsd.org>
Tue, 6 Oct 2015 08:13:03 +0000 (08:13 +0000)
committernicm <nicm@openbsd.org>
Tue, 6 Oct 2015 08:13:03 +0000 (08:13 +0000)
usr.bin/file/magdir/ssh [new file with mode: 0644]
usr.bin/file/magdir/ssl [new file with mode: 0644]

diff --git a/usr.bin/file/magdir/ssh b/usr.bin/file/magdir/ssh
new file mode 100644 (file)
index 0000000..4ab7118
--- /dev/null
@@ -0,0 +1,15 @@
+# $OpenBSD: ssh,v 1.1 2015/10/06 08:13:03 nicm Exp $
+
+# Type:        OpenSSH key files
+# From:        Nicolas Collignon <tsointsoin@gmail.com>
+
+0      string  SSH\ PRIVATE\ KEY       OpenSSH RSA1 private key,
+>28    string  >\0                     version %s
+0      string  -----BEGIN\ OPENSSH\ PRIVATE\ KEY-----  OpenSSH private key
+
+0      string  ssh-dss\                OpenSSH DSA public key
+0      string  ssh-rsa\                OpenSSH RSA public key
+0      string  ecdsa-sha2-nistp256     OpenSSH ECDSA public key
+0      string  ecdsa-sha2-nistp384     OpenSSH ECDSA public key
+0      string  ecdsa-sha2-nistp521     OpenSSH ECDSA public key
+0      string  ssh-ed25519             OpenSSH ED25519 public key
diff --git a/usr.bin/file/magdir/ssl b/usr.bin/file/magdir/ssl
new file mode 100644 (file)
index 0000000..22b32a9
--- /dev/null
@@ -0,0 +1,10 @@
+# $OpenBSD: ssl,v 1.1 2015/10/06 08:13:03 nicm Exp $
+
+# 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