fix testing certs with proper server use for localhost