Fix: use server certificate only when specified

Avoid using a server certificate when it's not specified,
so we can easily test while developing.