Allow passing certificate and private key directly