From: nicm Date: Tue, 6 Oct 2015 08:13:03 +0000 (+0000) Subject: ssh and ssl key file magic, from file 5.x. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a6674814b420757815d1faaf14eeb059be31e0ae;p=openbsd ssh and ssl key file magic, from file 5.x. --- 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 + +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 + +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