?
Solved

SSL with WinSock2

Posted on 2004-09-28
3
Medium Priority
?
1,046 Views
Last Modified: 2010-05-18
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)!
0
Comment
Question by:ChristopH1987
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 2000 total points
ID: 12172448
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
 
LVL 2

Author Comment

by:ChristopH1987
ID: 12181874
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
 
LVL 86

Expert Comment

by:jkr
ID: 12191770
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question