Add subjhash tool. Minor cleanups.

This commit is contained in:
Kyle Isom
2017-10-20 12:18:41 -07:00
parent 4fa6e4ab0e
commit d42c1fa1c5
4 changed files with 331 additions and 0 deletions

View File

@@ -49,6 +49,10 @@ func parse(path string) (public []byte, kt, ft string) {
lib.Warnx("trailing data in PEM file")
}
if p == nil {
die.With("no PEM data found")
}
data = p.Bytes
switch p.Type {