要修改crt证书的Authority Key Identifier的keyid,可以使用以下openssl命令:

openssl x509 -in cert.crt -out cert_new.crt -text -extfile <(printf 'authorityKeyIdentifier=keyid:always,issuer\n')

这个命令会将原始证书cert.crt中的authority key identifier字段的keyid值替换为issuer的keyid值,并将新证书保存在cert_new.crt中。

需要注意的是,使用这个命令修改证书后,证书的fingerprint将会改变,因此需要重新安装或部署证书。

修改OpenSSL证书的Authority Key Identifier KeyID

原文地址: https://www.cveoy.top/t/topic/nwQm 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录