mirror of
https://github.com/square/certigo.git
synced 2024-04-21 12:32:40 +00:00
Converted der section in getCerts to use updated ioreader instead of filename.
This commit is contained in:
@@ -123,6 +123,10 @@ func getCerts(reader io.Reader, format string) ([]certWithAlias, error) {
|
||||
block, data = pem.Decode(data)
|
||||
}
|
||||
case "DER":
|
||||
data, err := ioutil.ReadAll(reader)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
cert, err := x509.ParseCertificate(data)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user