diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-10-06 08:13:04 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2015-10-06 08:13:04 +0000 |
commit | f03dd4c93cebedea566b97aacfcfe1dd3790817c (patch) | |
tree | e583f0b17a4e08cdf40a5f0410317ecf6039a57d | |
parent | 9a5a06a7310ce52c69ecb7d95108d099763d3d14 (diff) |
ssh and ssl key file magic, from file 5.x.
-rw-r--r-- | usr.bin/file/magdir/ssh | 15 | ||||
-rw-r--r-- | usr.bin/file/magdir/ssl | 10 |
2 files changed, 25 insertions, 0 deletions
diff --git a/usr.bin/file/magdir/ssh b/usr.bin/file/magdir/ssh new file mode 100644 index 00000000000..4ab71186837 --- /dev/null +++ b/usr.bin/file/magdir/ssh @@ -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 index 00000000000..22b32a9f40b --- /dev/null +++ b/usr.bin/file/magdir/ssl @@ -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 |