Fix for wrong certificate (server instead of client).