OpenSSL

Linux编译OpenSSL 3.0.0

github仓库地址:https://github.com/openssl/openssl 官网下载地址:https://www.openssl.org/source/old/ # 下载特定版本 wget https://www.openssl.org/source/old/3.0/openssl- ......
OpenSSL Linux

实验二测试结果——openssl API使用

sm3加密代码及测试截图 sm3代码:用sm3加密“20211115fanyiqing”生成摘要值作为输出。 1 #include <stdio.h> 2 #include <string.h> 3 #include "openssl/evp.h" 4 #include "err.h" 5 6 vo ......
openssl 结果 API

openssl基础使用(密码学 linux)

目录 实验原理 实验过程 一、对称加密 1、使用rc4加解密 2、使用AES加解密 3、使用3DES加解密 二、非对称加密 1、RSA加解密码实验原理openssl是Linux内置的一款开源工具,实现了常见的密码算法与应用。通过openssl操作,完成各种密码算法的应用。实验过程创建一个文件,用于被 ......
密码学 密码 openssl 基础 linux

Linux 实现OpenSSL 服务器端客户端通信

1.OpenSSL安装 详情参考博文:https://blog.csdn.net/qq_39521181/article/details/96457673 2.SSL 在学习openssl编程之前,先了解一下什么是SSL,有助于后续的学习。SSL 是一个缩写,代表的是 Secure Sockets ......
客户端 OpenSSL 客户 服务器 Linux

openssl api使用

实验要求 参考 https://blog.csdn.net/bruce135lee/article/details/81811403 调用OpenSSL API 0 推荐在openEuler中实现 ,参考https://www.cnblogs.com/rocedu/p/6012545.html第三节 ......
openssl api

Linux升级openssl、openssh

在项目中,我们经常会发现Linux系统中Open SSH、Open SSL存在高危漏洞,如OpenSSL“心脏出血”漏洞,利用该漏洞,黑客可以获取约30%的https开头网址的用户登录账号密码,其中包括购物、网银、社交、门户等类型的知名网站等。 以及OpenSSH漏洞,如“OpenSSH远程代码执行 ......
openssl openssh Linux

实验二 OpenSSL API使用

sm3代码 #include <stdio.h> #include <openssl/evp.h> #include <openssl/err.h> #include <openssl/rand.h> void handleErrors(void) { ERR_print_errors_fp(std ......
OpenSSL API

实验二 OpenSSL API使用

SM3测试代码 #include <stdio.h> #include <string.h> #include "openssl/evp.h" #include "err.h" void tDigest(){ unsigned char md_value[EVP_MAX_MD_SIZE]; int ......
OpenSSL API

实验二 OpenSSL安装

......
OpenSSL

openssl 课上测试2

生成随机数: 点击查看代码 openssl rand -hex 16 进行sm4加密: 点击查看代码 openssl enc -sm4-cbc -in 20211102sn.txt -out sn.enc -K $(xxd -p -c 64 key.bin) -iv $(xxd -p -c 64 i ......
openssl

20211102尹子扬 实验二 openssl命令测试

点击查看代码 openssl dgst -sm3 -out sn.sm3 sn.txt 3.(用od打印时发现有\n换行符,所以在第4步时不加-n,否则会生成错误的hash值) 点击查看代码 od -t c -A n sn.sm3 4.(正确的是不带-n的hash值) 点击查看代码 echo "20 ......
20211102 命令 openssl

ERROR: The Python ssl extension was not compiled. Missing the OpenSSL lib?

CentOS7 pyenv安装Python 3.10.13 报错 yum install -y openssl-devel openssl11-devel openssl11-lib CPPFLAGS="-I/usr/include/openssl11" LDFLAGS="-L/usr/lib64/ ......
extension compiled Missing OpenSSL Python

centos 6.10 安装 python3.10.5 和 openssl1.1.1

centos 6.10 安装 python3.10.5 和 openssl1.1.1 安装 openssl centos 6.10 自带的 openssl 版本太老了,要安装 1.0.2以上的版本。 如果不安装 openssl,python 的 pip 无法联网。 下载 wget https://l ......
openssl1 python3 openssl centos python

openssl使用

查看证书的有效期 [root@host ~]# openssl x509 -in ca.pem -noout -dates notBefore=Oct 12 07:56:37 2023 GMT notAfter=Oct 9 07:56:37 2033 GMT 打印证书的内容 [root@host ~ ......
openssl

windows系统安装openssl并且转换证书格式

概述 碎碎念,如果你有MAC电脑,就别折腾了,直接用MAC电脑吧,不用安装直接用openssl 本文主要讲到了openssl的基本使用方法,开发环境为windows,开发工具为VS2019.本文主要是说明openssl如何使用,不介绍任何理论知识,如果有不懂的,请自行百度。个人建议下一个everyt ......
证书 windows openssl 格式 系统

OpenSSL 生成 RootCA (根证书)并自签署证书(支持 IP 地址)

背景 某机房内部访问需要配置 HTTPS,网上找的一些证书教程都不是特别好,有些直接生成证书,没有根 CA 的证书导致信任不了 Ubuntu 机器,有些教程只有域名生成,没有 IP 生成,有些甚至报错。故发一个笔者在 Ubuntu 22.04 机器上测试正确可用的流程,这里使用 10.12.0.2 ......
证书 OpenSSL 地址 RootCA IP

OpenSSL增加国密WAPI椭圆曲线

增加WAPI椭圆曲线先增加OID,OpenSSL的增加OID非常简单,如下 1, cd openssl/crypto/objects 2,vim objects.txt 增加如下图格式的参数 如上图所示,左半部分是OID,右半部分是名字 3, make update 4,grep 192v4 * - ......
椭圆 曲线 OpenSSL WAPI

openssl生成ssl证书

参考:https://www.ihuyi.com/pd/ssl/opensslshengchengsslzhengshu.html SSL证书是网站安全的基石,为了保证网站数据传输的安全性,需要使用SSL证书。而在实际项目中,通常选用 openssl 命令来生成 SSL 证书。通过 openssl ......
证书 openssl ssl

OpenSSL 密码软件库学习

说明:本次的密码算法采用C++编写,使用clion开发平台,Cmake编译配置工具;通过集成OpenSSL密码软件库,实现加解密功能。 1 对称加解密(AES) 1.1 AES简介: AES(Advanced Encryption Standard)是分组密码,每组的长度相同,为128位,即16个字 ......
软件库 密码 OpenSSL 软件

openssl创建证书

安装 brew install openssl 使用 root@MACdeMBP rem_key # openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 Generating a 4096 bit RS ......
证书 openssl

使用openssl_encrypt自己生成license.lic文件

//生成加密文件 public function createLicense() { // 加密信息 $licenseData = [ 'user' => 'John Doe', 'expiry' => '2022-12-31', ]; $licenseData = json_encode($lic ......

使用openssl生成根证书和服务器证书

1、生成服务器私钥 openssl genrsa -out server.key 2048 2、根据服务器私钥文件生成证书请求文件,这个文件中会包含申请人的一些信息,所以执行下面这行命令过程中需要用户在命令行输入一些用户信息,随便填写,一路回车即可 openssl req -new -key ser ......
证书 openssl 服务器

Clone fail unable to access 'httpsgithub.comLovi-githubmyUserCenter.git' OpenSSL SSL_read SSL_ERROR_SYSCALL, errno 10054

bug: unable to access 'https://github.com/xxx': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 关于git提交github出现errno 10054、port 443: Timed out等问题解决_g ......

window下编译openssl

Building OpenSSL 1.1.1(b) Notes (Windows) · GitHub Required: Visual Studio 2015 or 2017 (or probably later works) Setup 1. Clone/download OpenSSL 1.1. ......
下编 openssl window

【Linux】【MongoDB】启动Mongo时报缺少三个文件openssl1.0.1,libcrypto.so.1.1和libssl.so.1.1

百度了很近,用来很多方法,包括更新openssl版本,make版本之类的,还是不行,后来使用以下方式完成了平台部署。 话不多说,直接上命令如果你报的错误和我一样,3个全是not found,直接执行以下命令 yum install -y make yum -y install openssl wge ......
1.1 libcrypto openssl1 时报 三个

docker-compose 报错:ImportError: urllib3 v2.0 only supports OpenSSL 1.1.1+

没有解决问题的操作 wget https://www.openssl.org/source/openssl-1.1.1v.tar.gz tar -zxvf openssl-1.1.1v.tar.gz cd openssl-* ./config --prefix=/usr/local/ssl --op ......

evil-winrm:An error of type OpenSSL::Digest::DigestError happened, message is Digest initialization

使用evil-winrm无法连接主机,出现以下错误 Info: Establishing connection to remote endpoint Error: An error of type OpenSSL::Digest::DigestError happened, message is D ......

(重磅发布,一文学会乌班图ssh升级)Ubuntu-openssl和openssh升级

博主之前发布了红帽体系的Centos7关于openssl和openssh的升级操作;本文就Ubuntu系统再次分享和交流ssh的升级。如有不正确,欢迎在评论区指出。 之前博主的相关文章: openssh-浅谈openssl和openssh的升级 - 李宗盛 - 博客园 (cnblogs.com) o ......
重磅 Ubuntu-openssl openssl openssh Ubuntu

python3.10及以上版本编译安装ssl模块(openssl)

由于python3.10之后版本不在支持libressl使用ssl,需要使用openssl安装来解决编译安装 python时候遇到的ssl模块导入失败的问题,这里需要用的openssl1.1.1版本或者更高版本 在别人的博客查阅到资料,特此记录: https://blog.csdn.net/ye__ ......
模块 python3 openssl 版本 python