I am using a certificate with my WCF service so have an encoded value in the web.Config
This can be done by exporting the certificate (via IIS or Certificate Snap In) to a .cer file without the private key in base64 form, then opening in notepad and copying and pasting this into encodedValue