简体   繁体   English

使用DSA公钥验证X509证书签名

[英]Verify X509 cert signature with DSA public key

I need to verify a X509 cert signature with a DSA public key. 我需要使用DSA公钥验证X509证书签名。 My cert file is x509.crt and my DSA public key is in a file named dsa_pub.key 我的证书文件是x509.crt,我的DSA公钥在一个名为dsa_pub.key的文件中

I am trying to use openssl for this purpose. 我试图为此目的使用openssl。 I have read the openssl verify documentation but I cant find any reference to DSA within it. 我已经阅读了openssl验证文档,但是在其中找不到对DSA的任何引用。

When I run the following command, I can see my DSA Public Key within the cert: 运行以下命令时,可以在证书中看到我的DSA公钥:

openssl x509 -in cert.crt -text -noout

However, I am hitting a wall when it comes to verifying cert.crt using my DSA public key from the file dsa_pub.key 但是,在使用文件dsa_pub.key中的DSA公钥来验证cert.crt时,我遇到了麻烦

I would appreciate any advice. 我将不胜感激任何建议。

To verify, use the command pkeyutl as well as the verify command. 要进行验证,请使用命令pkeyutl以及verify命令。 See the documentation here for details. 有关详细信息,请参见此处的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 openssl X509_verify_cert()是否验证证书中的签名? - Do the openssl X509_verify_cert() verifies the signature in the certificate? 如何使用相应的X509证书验证RSA私有签名 - How to verify private RSA signed signature with corresponding X509 certificate OpenSSL:RSA_verify()和X509_verify_cert()使用通用的RSA验证代码 - Openssl: Do the RSA_verify() and X509_verify_cert() uses common RSA verification code 无法使用 openssl 验证公共证书的模块(无法验证 rsa 公钥来自私钥) - Unable to verify a public cert's modules with openssl (Unable to verify rsa public key came from a private key) 如果在文件范围内定义了签名缓冲区,为什么 public_key_verify_signature() 会返回错误? (Linux内核加密) - why public_key_verify_signature() returns error if signature buffer is defined in file scope? (linux kernel crypto) 如何将公共.pem dsa密钥导入C#代码? - How to I import public .pem dsa key into c# code? rsyslog x509 / certvalid要求允许的对等体 - rsyslog x509/certvalid requiring permitted peer Docker登录x509:证书由未知权威签署 - Docker login x509: certificate signed by unknown authority 在Linux上生成用于Windows的x.509密钥对 - Generate x.509 key pair on Linux for use with Windows 在将公钥的扩展名导入GnuPG之前是否热衷于验证? - Hot to verify a public key's extensions before importing it to GnuPG?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM