Solved

SSL with WinSock2

Posted on 2004-09-28
3
1,027 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 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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 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.

691 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