Bug 236298 - file/magic/Magdir/ssl
Summary: file/magic/Magdir/ssl
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2019-03-05 20:41 UTC by Jason Mader
Modified: 2019-06-17 12:51 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader 2019-03-05 20:41:48 UTC
$ file Ed25519.key
Ed25519.key: ASCII text

This is because there is no match for,

$ head -1 Ed25519.key

/contrib/file/magic/Magdir/ssl could add:

0       string  -----BEGIN\040PRIVATE  PEM private key

$ head -1 2019_Next_RSA.key

/contrib/file/magic/Magdir/ssl could also add:

0       string  -----BEGIN\040ENCRYPTED\040PRIVATE  PEM encrypted private key

Maybe also add:

0       string  -----BEGIN\040ED25519\040PRIVATE  PEM ED25519 private key
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-06-16 17:03:52 UTC
I'm confused by the Summary line, so I don't know how to triage this PR.

What is the expected action here?
Comment 2 Jason Mader 2019-06-17 12:51:50 UTC
(In reply to Mark Linimon from comment #1)

Suggestions for improvements to file so that it recognizes the modern key format. I listed three adds for /contrib/file/magic/Magdir/ssl