Enabled certificate pinning in demo project

Fixes #1771