Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val generate : unit -> t
generate ()
is a fresh secret key. You must call Nocrypto_entropy_lwt.initialize
before using this (it will give an error if you forget).
val of_pem_data : string -> t
of_pem_data data
parses data
as a PEM-encoded private key.
val to_pem_data : t -> string
to_pem_data t
returns t
as a PEM-encoded private key.
val certificates : t -> Tls.Config.own_cert
certificates t
is the TLS certificate chain to use for a vat with secret key t
.