Solved

SSL with WinSock2

Posted on 2004-09-28
3
996 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

760 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

26 Experts available now in Live!

Get 1:1 Help Now