Open ricardo-reis-1970 opened 3 months ago
Thanks for opening an issue. The way I see it is that PEM is the container file format (with the classic pattern---- BEGIN HEADER NAME ----
In which case, I would say that Magika's output as "pem" is OK, but the PEM certificate
description is misleading and we should update it to be more generic. @corkamig thoughts?
Another question is whether we should try to be finer grained, and try to distinguish between PEM certificate vs. PEM "other crypto material". We are working on the next version, which introduces support for many more content types, maybe we can try to take a stab this for the next iteration...
What should the file have been detected as? What has the file been misdetected as? OpenSSH private key files are being mistaken for PEM certificate files.
Please link or attach the misdetected file below (Do NOT upload PII!) The file could not be uploaded as the format is not supported. Also, the file is a private key, so I'm inclined to not share it.
Additional context Private keys look a lot like PEM certificates, except that their structure is:
whereas certificates' format is:
I would have thought that this was an easy distinction, and in fact, the Linux command
file
manages to distinguish them.I got this mistake both in command-line and from Python code. I'm using the model
standard_v1
. Should I be doing something different?