网络安全
openssl基本概念和操作
spic_jackmaster
工作变动,博客断更。
展开
-
QT 开发openSSL CSR证书请求工具
QT构建的证书请求工具GUI,基于OpenSSL库。创建RSA私钥,公钥,并根据私钥生成CSR请求文件,提供给证书颁发机构。原创 2022-02-21 20:32:49 · 1004 阅读 · 0 评论 -
SSL 多线程通信 linux openSSL C API编程
一、环境需要提前准备好服务端和客户端的证书和私钥,以及CA的证书。OpenSSL 1.1.1f 31 Mar 2020built on: Wed Nov 24 13:20:48 2021 UTCplatform: debian-amd64options: bn(64,64) rc4(16x,int) des(int) blowfish(ptr)Thread model: posixgcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)二...原创 2022-02-21 20:11:04 · 2362 阅读 · 1 评论 -
OpenSSL签发证书时编码UTF8STRING PRINTABLESTRING不匹配
问题如下:Check that the request matches the signatureSignature okThe countryName field is different betweenCA certificate (CN) and the request (CN)可以看出,CA和REQ的DN内容是一致的,依旧报错。其实是编码的问题。使用以下指令看编码格式:openssl asn1parse -in /etc/pki/CA/cacert.pemopens原创 2022-02-18 11:33:07 · 4748 阅读 · 1 评论 -
QT Openssl no OPENSSL_Applink 解决
QT5.15.2安装时候选择了openssl1.1.1库,在开发过程中出现OPENSSL_Applink。解决办法:将openssl include文件下的applink.c 添加到工程中,即可。原创 2022-02-17 12:57:26 · 1221 阅读 · 1 评论 -
openssl创建CA并签发证书
一、创建私有CA根证书1、创建CA目录root@DESKTOP-JP3S3AN:/home/wsl/openssl_pro# mkdir -pv /etc/pki/CA/{private,certs,crl,newcerts}mkdir: created directory '/etc/pki/CA'mkdir: created directory '/etc/pki/CA/private'mkdir: created directory '/etc/pki/CA/certs'mkdir原创 2022-02-16 17:37:36 · 3631 阅读 · 0 评论 -
openssl配置文件
root@DESKTOP-JP3S3AN:/home/wsl# cat /usr/lib/ssl/openssl.cnf## OpenSSL example configuration file.# This is mostly being used for generation of certificate requests.## Note that you can include other files from the main configuration# file using th.原创 2022-02-15 18:30:15 · 1743 阅读 · 0 评论 -
openssl版本信息和支持的命令
1、查看openssl版本openssl version -aopenssl version2、查看openssl支持的命令openssl helpStandard commandsasn1parse ca ciphers cmscrl crl2pkcs7 dgst dhparamdsa ...原创 2022-02-15 17:54:12 · 24679 阅读 · 0 评论