We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c61c07 commit dadd40bCopy full SHA for dadd40b
ocaml/gencert/pem.ml
@@ -85,6 +85,8 @@ let pem =
85
match List.partition (function Key _ -> true | Cert _ -> false) bs with
86
| [Key k], Cert c :: xs ->
87
return {private_key= k; host_cert= c; other_certs= List.map strip xs}
88
+ | [_], [] ->
89
+ fail "PEM is lacking a certificate"
90
| [], _ ->
91
fail "PEM is missing a private key"
92
| _ :: _, _ ->
0 commit comments