Error when trying to use webrtc

I’m trying to get webrtc to work. I followed the docs at http://wiki.freepbx.org/display/F2/WebRTC+Phone-UCP#WebRTCPhone-UCP-EnablingWebRTC. The dialler shows up in ucp but as soon as I try to place a call I get the following from asterisk… (I have deleted/recreated the CA and certs several times)

[2015-08-10 11:52:53] ERROR[27989][C-00016307]: res_rtp_asterisk.c:1314 ast_rtp_dtls_set_configuration: Specified certificate file '/etc/asterisk/keys/default.pem' for RTP instance '0x7fba9463b178' could not be used
[2015-08-10 11:52:53] ERROR[27989][C-00016307]: res_rtp_asterisk.c:1314 ast_rtp_dtls_set_configuration: Specified certificate file '/etc/asterisk/keys/default.pem' for RTP instance '0x7fba9463b178' could not be used
[2015-08-10 11:52:53] ERROR[27989][C-00016307]: chan_sip.c:5709 dialog_initialize_dtls_srtp: Attempted to set an  invalid DTLS-SRTP configuration on RTP instance '0x7fba9463b178'
[2015-08-10 11:52:53] ERROR[27989][C-00016307]: chan_sip.c:5709 dialog_initialize_dtls_srtp: Attempted to set an invalid DTLS-SRTP configuration on RTP instance '0x7fba9463b178'
[2015-08-10 11:52:53] NOTICE[27989][C-00016307]: chan_sip.c:25526 handle_request_invite: Failed to authenticate device <sip:99407@xxx>;tag=5bv1v5q7tm
[2015-08-10 11:52:53] NOTICE[27989][C-00016307]: chan_sip.c:25526 handle_request_invite: Failed to authenticate device <sip:99407@xxx>;tag=5bv1v5q7tm