Auth.Secret_keyval generate : unit -> tgenerate () is a fresh secret key. You must use e.g. Mirage_crypto_rng_eio.run to set a source of randomness before using this (it will raise an error if you forget).
val of_pem_data : string -> tof_pem_data data parses data as a PEM-encoded private key.
val to_pem_data : t -> stringto_pem_data t returns t as a PEM-encoded private key.
val tls_client_config : 
  t ->
  authenticator:X509.Authenticator.t ->
  Tls.Config.clienttls_client_config t ~authenticator is the TLS client configuration to use for a vat with secret key t, attempting to connect to a vat that can be authenticated with authenticator.
val tls_server_config : t -> Tls.Config.servertls_server_config t is the TLS server configuration to use for a vat with secret key t.