正常生成的smime pkcs7 可以根据明文+签名字符串验签,
比如用: openssl smime -verify -noverify -in smime.msg -out verified_payload.txt
PHP-> openssl_pkcs7_verify
但是第三方java接口返回的结果不管用什么办法都无法验签
明文:[JavaScript] 纯文本查看 复制代码 00000J000302000000002022041309530724323875854J00030200000001
签名字符:串 [JavaScript] 纯文本查看 复制代码 MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAMYIBtjCCAbICAQEwMDArMQswCQYDVQQGEwJDTjENMAsGA1UECwwEUFROUjENMAsGA1UEAwwEdGVzdAIBMDAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMjIwNDEzMDE1MzA1WjAjBgkqhkiG9w0BCQQxFgQUNM83YyGVb4F\/3qCf7nJdd0RCfPswDQYJKoZIhvcNAQEBBQAEggEAfTr5VkwK53MeEoWVSnItCiArnbSKA2BbFSg+nNmb9ZXx6iuPy1hdwGqv16krAA\/Pjfzv+gPaoiqAy8zNHf66OfCdqhlkuyaFALi4B6BRTEDPmXM+rmHTBgQP3jRQm259Bkmz+TnEuswdrtdA3q\/pDhGtQY7yEGxS6zWaq9QE2l9CEX9jVXGEB8IKkGyI1WS\/2pxx\/HR94VAa8tyTfHR3KdHraMKpWr9SXQVgF0yNKub3Mi4+TUM6cjxl7SODyDT3AnTtc7TDsGUcgfPKM9ffHveOetw3PDfo7PhFc8WLECEG5cQ\/OF3Tl08RmxtrZXfZXQTI8jGRd5PFa7oH7p9aOgAAAAAAAA==
java返回的有个特点都是以MIAGCSqG...开头,AAAAAAAA==结尾,中间随机,其他语言生成的后面不固定。
请求这一类的签名是什么类型的签名?如何验签?
|