Fix crash on certificate exchange

Remove invalid CSRF check and fix certificate request bug.

Jira issue: WP-959