Openssl与裸winsock [英] Openssl with bare winsock

查看:111
本文介绍了Openssl与裸winsock的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Should i use OpenSSL with bare Winsock? So encrypt the communication. The far i understand the server has the have a Certificate, should i create that certificate using Open/SSL ? 
And on the Client side of Winsock i use OpenCert/****/ Functions to do the rest of the job ( verification ) adding the certificate to the certificate store ? 

Thanks





我尝试过:



谷歌但是什么都不懂!



What I have tried:

Google But did not understand nothing !

推荐答案

在解决这类问题之前还有很多你需要了解的内容。



以下是件,但要注意这是一个很大的话题:



OSI模型 - 维基百科

eg OpenSSL在第6层运行;第5层的WinSock。



此参考文献还提到了网络层模型。

HTTPS - 维基百科



一旦掌握了这些概念你可能会问一个更好的问题,最好是在查看示例代码之后。

在C ++世界中,你不能过去看一下boost :: asio,这里是一些代码的链接让你心跳加速...

GitHub - alexandruc / SimpleHttpsClient :基于Boost Asio的简单HTTPS客户端。
There is a whole lot more you need to understand before tackling this kind of problem.

Here are the pieces but be warned this is a large topic:

OSI model - Wikipedia
e.g. OpenSSL operates in Layer 6; WinSock in layer 5.

This reference also mentions the network layers model.
HTTPS - Wikipedia

Once you have a grasp of these concepts you may be able to ask a better question, preferably after looking at example code.
In the C++ world you can't go past looking at boost::asio for instance and here's a link to some code to get your heart racing...
GitHub - alexandruc/SimpleHttpsClient: A simple HTTPS client based on Boost Asio.


这篇关于Openssl与裸winsock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆