SSL with WinSock2

Hello...

I have an application where a client and a server communicate over sockets [ socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) ].

How can i integrate a SSL-Encryption now?
It would be nice if you could also tell me how to create a certificate and so on with APIs and better with an example code that creates such a certificate from name, telefon (or what)?!

Thanks for advance!
I can increase points because I need this very urgent (some days or so)!
LVL 2
ChristopH1987Asked:
Who is Participating?
 
jkrCommented:
There's a nice sample here: http://www.codeproject.com/internet/sslsocket.asp ("CSslSocket - SSL/TLS enabled CSocket") that is quite generic. If you are focusing on HTTPS, http://www.codeproject.com/internet/wininet_ssl___certificate.asp ("Connecting to a HTTPS server with SSL using Wininet, sending client certificate and reading response") might suit better.
0
 
ChristopH1987Author Commented:
Thanks...

Can you please give me an example how to use this CSSLSocket class? I dont know what I have to type in for Username and so on...
0
 
jkrCommented:
The demo programs have all that:

"There are modified samples from Microsoft CHATTER / CHATSRVR for demonstration of CSslSocket usage and work in the zipped file"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.