OpenSSL如何安装
发表于:2024-09-29 作者:千家信息网编辑
千家信息网最后更新 2024年09月29日,这篇文章将为大家详细讲解有关OpenSSL如何安装,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。OpenSSL官方网站:https://www.openssl.or
千家信息网最后更新 2024年09月29日OpenSSL如何安装
这篇文章将为大家详细讲解有关OpenSSL如何安装,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。
OpenSSL官方网站:https://www.openssl.org/source/
解压,编译,安装
解压OpenSSLpi@raspberrypi:~ $ cd openssl/pi@raspberrypi:~/openssl $ tar xf openssl-1.1.0.tat.gzpi@raspberrypi:~/openssl $ cd openssl-1.1.0/编译环境检查pi@raspberrypi:~/openssl/openssl-1.1.0 $ ./config pi@raspberrypi:~/openssl/openssl-1.1.0 $ echo $?0开始编译pi@raspberrypi:~/openssl/openssl-1.1.0 $ make -j 8pi@raspberrypi:~/openssl/openssl-1.1.0 $ echo $?0开始安装,注意权限pi@raspberrypi:~/openssl/openssl-1.1.0 $ sudo make installpi@raspberrypi:~/openssl/openssl-1.1.0 $ echo $?0
测试:
pi@raspberrypi:~/openssl $ cat main.c #include#include #include int main(int argc,char** str){ if(argc<2) { printf("%s \"string\"\n",str[0]); return 0; } unsigned char outmd[20];//注意这里的字符个数为20 memset(outmd,0,sizeof(outmd)); SHA_CTX stx; SHA1_Init(&stx); SHA1_Update(&stx,str[1],strlen(str[1])); SHA1_Final(outmd,&stx); int i; for(i=0;i<20;i++) { printf("X",outmd[i]); } printf("\n"); return 0;}pi@raspberrypi:~/openssl $ gcc main.c -l crypto -Wall && ./a.out "Hello Linux OpenSSL"B15F046FCA47459DFBC7B01B11E4F1A6462847FCpi@raspberrypi:~/openssl $
校验程序是否正确:http://encode.chahuo.com/
关于"OpenSSL如何安装"这篇文章就分享到这里了,希望以上内容可以对大家有一定的帮助,使各位可以学到更多知识,如果觉得文章不错,请把它分享出去让更多的人看到。
篇文章
编译
更多
不错
实用
个数
内容
字符
官方
官方网站
文章
权限
环境
知识
程序
网站
参考
帮助
有关
检查
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
数据库一对多的转换规则
网络技术誉到上海百首网络
数据库中创建表时怎么设置外键
数据库链接所占的资源
数据库项目三实训报告
常用管理服务器脚本
AD域服务器的使用
联想电脑数据库类型怎么查询
激战2无法连接 服务器
江西数据软件开发服务推广
刀片机 服务器多少钱
杭州文件存储服务器
两个数据库相同字段
服务器批量管理面板
大型数据库服务器怎样散热的
网络技术前沿的网络技术趋势
汽车安全电子软件开发
北京网络技术咨询什么价格
合肥好盘手网络技术有限公司
关于网络安全法的图片
梦幻西游用什么软件开发的
数据库不同用户表空间
数据软件开发薪水
戴尔服务器是做什么用
qt插入sqlite数据库
软件开发怎么算商业秘密
北京交易软件开发平台
服务器 以太网
软件开发涉及专业
土豆怎么挂云服务器