- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
ssl双向认证之客户端(SSL bidirectional authentication client)
ssl双向认证之客户端(SSL bidirectional authentication client)
Openssl two-way authentication client code
OpenSSL is a rich and self-contained open source security toolkit. It provides the main functions are: SSL protocol (including SSLv2, SSLv3 and TLSv1), a large number of software algorithm (symmetric / asymmetric / Abstract), the operation of large numbers, asymmetric key generation algorithm, the ASN.1 codec, the certificate request (PKCS10) encoding and decoding, encoding and decoding digital certificates, CRL implementation and PKCS12 digital certificate format decoding, OCSP protocol, digital certificate authentication, PKCS7 standard series etc..
This paper mainly introduces the OpenSSL client server two-way authentication communication, how should the client set up?. Including how to use the OpenSSL command to generate the client server certificate and key, and the use of OpenSSL with server end SSL to realize bidirectional authentication simple, client code also made the corresponding annotation and explanation, compiled Makefile. hope that how to use OpenSSL secure connection friends useful to start learning.
1. first, how to generate client and server certificates (PEM) and keys.
After downloading and installing the OpenSSL development package in the Linux environment, build a SSL test environment through the OpenSSL command.
1) building your own CA
In the Misc directory of the OpenSSL installation directory, run the script:./CA.sh -newca, and when prompted, enter directly. After running, a demonCA directory is generated that contains the CA certificate and its private key.
2) generate client and server certificate requests:
OpenSSL, req, -newkey, rsa:1024, -out, req1.pem, -keyout, sslclientkey.pem
OpenSSL, req, -newkey, rsa:1024, -out, req2.pem, -keyout, sslserverkey.pem
3) issue client and server certificates
OpenSSL, CA, -in, req1.pem, -out, sslclientcert.pem
OpenSSL, CA, -in, req2.pem, -out, sslservercert.pem
4) run the SSL server:
OpenSSL, s_server, -cert, s
您可能关注的文档
- bcg矩阵视角下的人力资源业务分类管理新思路3(New idea of classifying and managing human resource service from the perspective of BCG Matrix 3).doc
- bh250故障代码表(Bh250 fault code table).doc
- bios中英文对照表(BIOS Chinese and English comparison list).doc
- c++builder 编程专栏(C++ Builder编程专栏).doc
- c++双向循环链表代码(建立、排序、插入、删除)(C++ bidirectional cyclic list code (establishment, sorting, insertion, deletion)).doc
- c++stack 和 queue用法(C++栈和队列用法).doc
- c++常见编译错误(C++ common compile errors).doc
- c++服务器客户端socket编程(C++ server client socket programming).doc
- c++程序设计课后习题第6章答案(C++ programming exercises after sixth chapters of the answer).doc
- c++编译器的比较(Comparison of c++ compilers).doc
- standard resumé template标准简历模板 - 同济大学edp target=_blank(abstract standard template标准简历模板 _ 同济大学edp target = blank).doc
- star打印机维修资料(Star printer maintenance data).doc
- stdafx.h预编译头(Stdafx.h precompiled header).doc
- sw生物(SW creatures).doc
- tar 压缩打包命令使用方法(Tar compression package command usage).doc
- tcl王牌彩电遥控器对照表_按遥控器型号查找(TCL remote control color TV card table _ search by remote control model).doc
- tcm100中医e百-常用穴位处方歌诀一览表(Tcm100 Chinese e 100 - acupoints prescription gejue list).doc
- svg动画编程及其应用(Svg animation programming and its application).doc
- socket编程的注意事项(Socket programming notes).doc
- thinkpad -- 如何高效率地使用电池(ThinkPad - how to use batteries efficiently).doc
最近下载
- 2023海南省邮政业安全保障中心招聘事业编制工作人员12人笔试备考题库及答案解析.docx VIP
- 第2章红外谱图解析习题课第章红外谱图解析习题课第2章红外谱图解析习题课第2章红外谱图解析习题课.ppt VIP
- 第七届全市职业技能大赛整理收纳师技术文件.docx VIP
- 化工污染物石油化工清洁生产94课件.pptx VIP
- 北京-LITE-产品使用说明书-引力版-BJ7000KPCC-BEV-LITE纯电动汽车产品使用说明书.pdf VIP
- 公共资源考试试题及答案.doc VIP
- 红外谱图解析习题课.pptx VIP
- CNAS-GL047-2021 医学实验室定量检验程序结果可比性验证指南.docx VIP
- 2025海南省邮政业安全保障中心招聘事业编制人员4人(第1号)笔试备考试题及答案解析.docx VIP
- 绿色化学与清洁生产.pptx VIP
文档评论(0)