# Functions
TlsCertFromFile loads a TLS certificate and RSA private key from the files specified as certPath and keyPath, applying some basic validation before returning the certificate.
TlsCertFromX509 generates a TLS certificate for the x509 certificate cert and the private key key.