Solved

SSL with WinSock2

Posted on 2004-09-28
3
1,005 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
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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 video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

813 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now