def _privateCertFromPaths(certificatePath, keyPath):
 if (certificatePath is None):
  return None
 certBytes = FilePath(certificatePath).getContent()
 if (keyPath is None):
  return PrivateCertificate.loadPEM(certBytes)
 else:
  return PrivateCertificate.fromCertificateAndKeyPair(Certificate.loadPEM(certBytes), KeyPair.load(FilePath(keyPath).getContent(), 1))

def _privateCertFromPaths ( certificatePath , keyPath ) : if ( certificatePath is None ) : return None certBytes = FilePath ( certificatePath ) . getContent ( ) if ( keyPath is None ) : return PrivateCertificate . loadPEM ( certBytes ) else : return PrivateCertificate . fromCertificateAndKeyPair ( Certificate . loadPEM ( certBytes ) , KeyPair . load ( FilePath ( keyPath ) . getContent ( ) , 1 ) )
parse a certificate path and key path .