java PKCS7算法 返回的签名如何验签?

第三方接口java返回了明文

00000J000302000000002022041309530724323875854J00030200000001

签名字符串

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAMYIBtjCCAbICAQEwMDArMQswCQYDVQQGEwJDTjENMAsGA1UECwwEUFROUjENMAsGA1UEAwwEdGVzdAIBMDAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMjIwNDEzMDE1MzA1WjAjBgkqhkiG9w0BCQQxFgQUNM83YyGVb4F\/3qCf7nJdd0RCfPswDQYJKoZIhvcNAQEBBQAEggEAfTr5VkwK53MeEoWVSnItCiArnbSKA2BbFSg+nNmb9ZXx6iuPy1hdwGqv16krAA\/Pjfzv+gPaoiqAy8zNHf66OfCdqhlkuyaFALi4B6BRTEDPmXM+rmHTBgQP3jRQm259Bkmz+TnEuswdrtdA3q\/pDhGtQY7yEGxS6zWaq9QE2l9CEX9jVXGEB8IKkGyI1WS\/2pxx\/HR94VAa8tyTfHR3KdHraMKpWr9SXQVgF0yNKub3Mi4+TUM6cjxl7SODyDT3AnTtc7TDsGUcgfPKM9ffHveOetw3PDfo7PhFc8WLECEG5cQ\/OF3Tl08RmxtrZXfZXQTI8jGRd5PFa7oH7p9aOgAAAAAAAA==

对方告诉我是 PKCS7 ,但是我用java或者php openssl_pkcs7_verify 都无法验签成功,提示这个签名都无法解析,多次请求测试发现个规律 签名尾部都会携带AAAAAAAA== ,正常生成的都是随机字符串没有固定这个结尾,请问下他们返回的这种签名该如何验签?

直接Linux上 openssl smime -verify -noverify -in smime.msg -out verified_payload.txt 也不行

类似疑问:https://www.iteye.com/problem...

以上是 java PKCS7算法 返回的签名如何验签? 的全部内容, 来源链接: utcz.com/p/944353.html

回到顶部