fun saveCertificateAsPEMFile(x509Certificate: X509Certificate, filename: Path): UnitHelper method to store a .pem/.cer format file copy of a certificate if required for import into a PC/Mac, or for inspection
x509Certificate - certificate to savefilename - Target filename