--- title: "How do I get a secure socket?" source_url: https://dev.digicert.com/trustcore-sdk/nanossl/faqs/how-do-i-get-a-secure-socket.html --- **Question:** Can I simply replace my code that opens an unsecure socket with an equivalent, but secure, routine from the TrustCore SDK code? **Answer:** No. A socket still needs to be opened, and then the secure TrustCore SDK calls may be layered on it.