<p>I'm currently working on a project that requires encrypted data be passed between WCF hosts. As I understand it there are only 2 ways to ensure that data passed over WCF is secure. </p>

<ol>
<li>Using Certificates</li>
<li>Using a Domain (or having the same username and password on every machine on the network)</li>
</ol>

<p>Using certificates can be expensive and complicated to manage and since we're not guaranteed to have a server class machine at every deployment a Domain is also out of the question. Having every machine use the same username and password is also problematic if that password ever needs to be changed.</p>

<p>Currently we use OpenSSH to tunnel our connections between hosts. Is there another option built into the framework that I'm unaware of?</p>

[{'answer_id': 50693, 'author': 'Bermo', 'author_id': 5110, 'author_profile': 'https://Stackoverflow.com/users/5110', 'pm_score': 0, 'selected': False, 'text': '<p>If you are using a http endpoint, you can use a secure transport such as https.</p>\n'}, {'answer_id': 50703, 'author': 'NotMe', 'author_id': 2424, 'author_profile': 'https://Stackoverflow.com/users/2424', 'pm_score': 0, 'selected': False, 'text': '<p>Use traditional encryption of the data that you are placing inside the WCF container.  Maybe something like the following:</p>\n\n<p><a href="http://www.obviex.com/samples/EncryptionWithSalt.aspx" rel="nofollow noreferrer">http://www.obviex.com/samples/EncryptionWithSalt.aspx</a></p>\n'}, {'answer_id': 193410, 'author': 'Robert C. Barth', 'author_id': 9209, 'author_profile': 'https://Stackoverflow.com/users/9209', 'pm_score': 2, 'selected': False, 'text': '<p>Encryption requires a key. Keys are usually implemented as certificates. If you own both sides of the communication, you can create your own certificate for free without having to go buy one from a trusted root authority.</p>\n'}, {'answer_id': 241501, 'author': 'David Schmitt', 'author_id': 4918, 'author_profile': 'https://Stackoverflow.com/users/4918', 'pm_score': 0, 'selected': False, 'text': '<p>The cheapest method is probably to run your own certification authority. This means you have total control over the certificates, but you do not have to pay for external certification. If you automate this appropriately, you can give every machine on your net a cryptographic identity and use your local certification to tie everything together.</p>\n'}, {'answer_id': 9685504, 'author': 'Andreas Zita', 'author_id': 382838, 'author_profile': 'https://Stackoverflow.com/users/382838', 'pm_score': 1, 'selected': False, 'text': '<p>Here is an <a href="http://www.codeproject.com/Articles/166044/WCF-Client-Server-Application-with-Custom-Authenti" rel="nofollow">alternative</a>. Works without IIS and SSL/X509 certificates.</p>\n'}]
['https://Stackoverflow.com/questions/50684', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2191/']