openssl3.2/test/certs - 040 - EC cert with named curve signed by named curve ca

文章目录

    • [openssl3.2/test/certs - 040 - EC cert with named curve signed by named curve ca](#openssl3.2/test/certs - 040 - EC cert with named curve signed by named curve ca)
    • 概述
    • 笔记
    • END

openssl3.2/test/certs - 040 - EC cert with named curve signed by named curve ca

概述

openssl3.2 - 官方demo学习 - test - certs

笔记

bash 复制代码
/*!
* \file D:\my_dev\my_local_git_prj\study\openSSL\test_certs\040\my_openssl_linux_doc_040.txt
* \note openssl3.2/test/certs - 040 - EC cert with named curve signed by named curve ca
*/

// --------------------------------------------------------------------------------
// official bash script
// --------------------------------------------------------------------------------
# openssl3.2/test/certs - 040 - EC cert with named curve signed by named curve ca
./mkcert.sh genee server.example ee-key-ec-named-named ee-cert-ec-named-named ca-key-ec-named ca-cert-ec-named

// --------------------------------------------------------------------------------
// openssl cmd line parse
// --------------------------------------------------------------------------------
// cmd 1
openssl genpkey -algorithm rsa -pkeyopt rsa_keygen_bits:2048 -out ee-key-ec-named-named.pem 

// cmd 2
// cfg_exp_040_cmd2.txt
string_mask=utf8only
[req]
prompt = no
distinguished_name = dn
[dn]
CN = server.example

openssl req -new -sha256 -key ee-key-ec-named-named.pem -config cfg_exp_040_cmd2.txt -out req_exp040_cmd2.pem

// cmd 3
// cfg_exp040_cmd3.txt
subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid, issuer
basicConstraints = CA:false

extendedKeyUsage = serverAuth
[alts]
subjectAltName = @alts
DNS=server.example
[alts]

openssl x509 -req -sha256 -out ee-cert-ec-named-named.pem -extfile cfg_exp040_cmd3.txt -CA ca-cert-ec-named.pem -CAkey ca-key-ec-named.pem -set_serial 2 -days 36525 -in req_exp040_cmd2.pem

// --------------------------------------------------------------------------------
// openssl log
// --------------------------------------------------------------------------------
openssl genpkey -algorithm rsa -pkeyopt rsa_keygen_bits:2048 -out ee-key-ec-named-named.pem 
openssl req -new -sha256 -key ee-key-ec-named-named.pem -config /dev/fd/63 

-config /dev/fd/63 => /home/lostspeed/openssl/openssl-3.2.0_debian/test/certs/my_openssl_linux_log.txt



string_mask=utf8only
[req]
prompt = no
distinguished_name = dn
[dn]
CN = server.example
openssl x509 -req -sha256 -out ee-cert-ec-named-named.pem -extfile /dev/fd/63 -CA ca-cert-ec-named.pem -CAkey ca-key-ec-named.pem -set_serial 2 -days 36525 

-extfile /dev/fd/63 => /home/lostspeed/openssl/openssl-3.2.0_debian/test/certs/my_openssl_linux_log.txt



subjectKeyIdentifier = hash
authorityKeyIdentifier = keyid, issuer
basicConstraints = CA:false

extendedKeyUsage = serverAuth
[alts]
subjectAltName = @alts
DNS=server.example




[alts]

END

相关推荐
Lsetea14 小时前
curl指定CA目录仍报证书不受信任:--capath与OpenSSL rehash排查
运维·https·ssl·openssl·curl
Lsetea1 天前
OpenSSL报path length constraint exceeded:CA层级与pathlen排查
运维·https·ssl证书·openssl·证书链
Lsetea1 天前
OpenSSL s_client退出码为0却证书验证失败:严格校验与Shell管道排查
https·shell·ssl证书·openssl·tls
Lsetea1 天前
OpenSSL报permitted subtree violation:证书SAN与CA名称约束排查
运维·https·ssl证书·openssl·证书链
Lsetea3 天前
OpenSSL verify报error 20:CAfile、fullchain与本地信任链分层排查
nginx·https·ssl证书·openssl·证书链
Lsetea10 天前
证书没到期却报certificate has expired:OpenSSL定位中间证书与系统时间
运维·https·ssl证书·openssl·证书链
Lsetea11 天前
Nginx报No required SSL certificate was sent:mTLS客户端证书排查
运维·nginx·https·ssl·openssl
Lsetea12 天前
部署证书后提示“证书名称与输入不匹配”:Safari 报错的三层排查
nginx·https·safari·ssl证书·openssl
Lsetea13 天前
OpenSSL快速生成域名证书:含SAN的自签命令、验证与排错
nginx·https·ssl证书·openssl·自签证书
Lsetea17 天前
CDN换了SSL证书仍显示旧证书?按边缘节点、SNI和缓存逐层排查
https·cdn·ssl证书·openssl·tls