mirror of
https://github.com/fleetdm/fleet
synced 2026-05-05 14:28:46 +00:00
11 lines
287 B
Go
11 lines
287 B
Go
// based on github.com/kolide/launcher/pkg/osquery/tables
|
|
package cryptoinfo
|
|
|
|
func tryDer(data []byte, _password string) ([]*KeyInfo, error) {
|
|
cert, err := parseCertificate(data)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
return []*KeyInfo{NewCertificate(kiDER).SetData(cert, err)}, nil
|
|
}
|