Allow specifying cert from memory.