This commit is contained in:
Hannes Mehnert 2019-06-27 21:23:24 +02:00
parent af0de00ab5
commit b706f4ecf2

View file

@ -202,7 +202,9 @@ DDGH2wmML4sbbol/cJOucUrvAsQxRj39y+N737ojNUgybgtLiv1FyKzmBx24u0Bb
jfuLKkCfGcw9A8o= jfuLKkCfGcw9A8o=
-----END CERTIFICATE----- -----END CERTIFICATE-----
|} in |} in
X509.Encoding.Pem.Certificate.of_pem_cstruct1 data match X509.Certificate.decode_pem data with
| Ok c -> c
| Error (`Parse e) -> invalid_arg e
let create_tls ?(port = 8093) ?hostname ?(interval = 10) s certificates = let create_tls ?(port = 8093) ?hostname ?(interval = 10) s certificates =
Metrics.enable_all (); Metrics.enable_all ();