xml sign error #155
Unanswered
MargulanDev
asked this question in
Q&A
Replies: 3 comments 8 replies
-
в работе |
Beta Was this translation helpful? Give feedback.
2 replies
-
Удалось решить как-то эту проблему? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Добрый день! Подскажите, как-то можно решить эту проблему? Примеры из swagger работают, но реальные ключи - нет. Контейнер свежий:
Есть пример запроса сервиса, ключ из примера при подписании тоже дает такую ошибку. Может быть поможет в отладке: <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
soap:mustUnderstand="1">
<ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="SIG-BEFF7CB55C69AB1BB5147624829678710">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="soap"/>
</ds:CanonicalizationMethod>
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#gost34310-gost34311"/>
<ds:Reference URI="#id-BEFF7CB55C69AB1BB514762482966309">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
<ec:InclusiveNamespaces xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"
PrefixList=""/>
</ds:Transform>
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#gost34311"/>
<ds:DigestValue>d57ciD7pb509fbkviNryRDWJedT9NLo9DHfDTFIPKUE=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
mGJuAVI6uZoqxhITYLgM6lidMW368R+ksSsfRO9+tPEgy/f0j0M1TkH/bA7DVTqstH30q25qdH7fCDNsrmzfpA==
</ds:SignatureValue>
<ds:KeyInfo Id="KI-BEFF7CB55C69AB1BB514762482966307">
<wsse:SecurityTokenReference wsu:Id="STR-BEFF7CB55C69AB1BB514762482966308">
<wsse:KeyIdentifier
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3">
MIIGzzCCBnigAwIBAgIgd85y+4K6Cxug5+mBUOLVm9LM9Kowu656VnhiYMbjNn0wDgYKKwYBBAG1EQECAgUAMIIBFDEfMB0GA1UEAwwW0J3Qo9CmINCg0JogKNCT0J7QodCiKTFDMEEGA1UECww60JjQvdGE0YDQsNGB0YLRgNGD0LrRgtGD0YDQsCDQvtGC0LrRgNGL0YLRi9GFINC60LvRjtGH0LXQuTFxMG8GA1UECgxo0J3QsNGG0LjQvtC90LDQu9GM0L3Ri9C5INGD0LTQvtGB0YLQvtCy0LXRgNGP0Y7RidC40Lkg0YbQtdC90YLRgCDQoNC10YHQv9GD0LHQu9C40LrQuCDQmtCw0LfQsNGF0YHRgtCw0L0xFTATBgNVBAcMDNCQ0YHRgtCw0L3QsDEVMBMGA1UECAwM0JDRgdGC0LDQvdCwMQswCQYDVQQGEwJLWjAeFw0xNTEwMDcwOTUxMDhaFw0xNjEwMDYwOTUxMDhaMIIB+TEYMBYGA1UEBRMPSUlOODAwNzI2MzAxNDc5MRgwFgYDVQQLDA9CSU4xNDEwNDAwMTkyMjkxggEBMIH+BgNVBAoMgfbQk9Ce0KHQo9CU0JDQoNCh0KLQktCV0J3QndCe0JUg0KPQp9Cg0JXQltCU0JXQndCY0JUgItCa0J7QnNCY0KLQldCiINCh0JLQr9CX0JgsINCY0J3QpNCe0KDQnNCQ0KLQmNCX0JDQptCY0Jgg0Jgg0JjQndCk0J7QoNCc0JDQptCY0Jgg0JzQmNCd0JjQodCi0JXQoNCh0KLQktCQINCf0J4g0JjQndCS0JXQodCi0JjQptCY0K/QnCDQmCDQoNCQ0JfQktCY0KLQm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AwBggrBgEFBQcCARYkaHR0cDovL3BraS5nb3Yua3ovaW5mby9jYV9wb2xpY3kucGRmMDwGCCsGAQUFBwICMDAaLtDl4+vg7OXt8iDN4Pbo7u3g6/zt7uPuINPk7vHy7uLl8P/++eXj7iDW5e3y8OAwEwYDVR0lBAwwCgYIKwYBBQUHAwQwWAYDVR0fBFEwTzAloCOgIYYfaHR0cDovL2NybC5wa2kua3ovY3JsL0dvc3QwLmNybDAmoCSgIoYgaHR0cDovL2NybDEucGtpLmt6L2NybC9Hb3N0MC5jcmwwDgYKKwYBBAG1EQECAgUAA0EAJjgQ8JUX/yd/97USWYu6EWokPmulLss9ejJcI5fJq/7CWeArp1Icg8b8i95OE2Cy7YpvX59zL+NE36ZCLOVlVA==
</wsse:KeyIdentifier>
</wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature>
</wsse:Security> |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
{
"status": 500,
"message": "class kz.gov.pki.kalkan.asn1.DERSequence cannot be cast to class kz.gov.pki.kalkan.asn1.DERInteger (kz.gov.pki.kalkan.asn1.DERSequence and kz.gov.pki.kalkan.asn1.DERInteger are in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @7eda2dbb)"
}
Beta Was this translation helpful? Give feedback.
All reactions