Статус: Новичок
Группы: Участники
Зарегистрирован: 24.08.2022(UTC) Сообщений: 3
|
У меня в целом включен дебаговый логгинг, там от xmlsec ничего полезного нету. Попробовал по вашему образцу логгинг сконфигурить - аналогично: Код:
> Task :JCPTest.main()
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.DigestParamsSpec_class_default=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.DigestParamsSpec_2012_256_class_default=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.DigestParamsSpec_2012_512_class_default=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.AlgIdSpec_class_default=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.AlgIdSpec_class_defaultDH=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.AlgIdSpec_2012_256_class_default=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.AlgIdSpec_2012_256_dh_class_defaultDH=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.AlgIdSpec_2012_512_class_default=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.AlgIdSpec_2012_512_dh_class_defaultDH=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenReader <init>
FINE: Reader name is null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenStore <init>
FINE: RutokenStore (000) loaded. Store name null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenReader <init>
FINE: Reader name is null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenStore <init>
FINE: RutokenStore (001) loaded. Store name null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenReader <init>
FINE: Reader name is null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenStore <init>
FINE: RutokenStore (002) loaded. Store name null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.ssl.Provider b
INFO: JCP license isServer: true
Jul 13, 2023 1:35:34 PM org.apache.ws.security.WSSecurityEngine processSecurityHeader
FINE: enter processSecurityHeader()
Jul 13, 2023 1:35:34 PM org.apache.ws.security.WSSecurityEngine processSecurityHeader
FINE: Processing WS-Security header for '...' actor.
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.Key.GostKeyFactory engineGeneratePublic
FINER: ENTRY
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getBoolean
CONFIG: User Preference Node: /ru/CryptoPro/JCP/tools/Control.StrengthenedKeyUsageControl=false
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.EllipticParamsSpecDH_class_defaultDH=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.EllipticParamsSpecDH_2012_256_class_defaultDH=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.EllipticParamsSpec_class_defaultECC=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.EllipticParamsSpec_2012_256_class_defaultECC=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.CryptParamsSpec_class_default=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.CryptParamsSpec_2012_256_class_default=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.CryptParamsSpec_2012_512_class_default=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.Key.GostKeyFactory engineGeneratePublic
FINER: RETURN
Jul 13, 2023 1:35:34 PM jdk.internal.event.EventHelper logX509CertificateEvent
FINE: X509Certificate: Alg:GOST3411_2012_256WITHGOST3410_2012_256, Serial:...
Jul 13, 2023 1:35:34 PM org.apache.ws.security.processor.SignatureProcessor handleToken
FINE: Found signature element
Jul 13, 2023 1:35:34 PM org.apache.ws.security.validate.SignatureTrustValidator verifyTrustInCert
FINE: Certificate path has been verified for certificate with subject CN=...
Jul 13, 2023 1:35:34 PM org.apache.ws.security.validate.SignatureTrustValidator isCertificateInKeyStore
FINE: No certificate found for subject from issuer with CN=...
Jul 13, 2023 1:35:34 PM org.apache.ws.security.validate.SignatureTrustValidator matches
WARNING: No Subject DN Certificate Constraints were defined. This could be a security issue
Jul 13, 2023 1:35:34 PM org.apache.ws.security.processor.SignatureProcessor verifyXMLSignature
WARNING: No Subject DN Certificate Constraints were defined. This could be a security issue
FINE: Verify XML Signature
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.Starter <init>
INFO: Loading JCP 2.0.41940-A
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase <init>
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: SelfTester constructor.
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref get
CONFIG: User Preference Node: /ru/CryptoPro/JCP/tools.SelfTester_jar_classes_jcp25=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase a
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: initiating of jar list...
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase a
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: jar classes: ru.CryptoPro.JCP.JCP
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase a
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: getting class url for class name: ru.CryptoPro.JCP.JCP
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase a
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: jar file:/home/git/misc/jcptest/jcp/JCP.jar has been added to self-tester.
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase a
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: initiating of jar list completed.
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase b
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: building of test list...
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref get
CONFIG: User Preference Node: /ru/CryptoPro/JCP/tools.SelfTester_external_classNames_jcp25=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase b
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: building of test list completed.
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase a
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: initiating...
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase a
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: initiating completed.
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase <init>
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: SelfTester constructor OK.
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase b
FINE: [main] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: starting tester thread...
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.SelfTesterBase run
FINE: [SelfTester-JCP] :: [ru.CryptoPro.JCP.tools.SelfTester_JCP] :: SelfTester run.
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getBoolean
CONFIG: User Preference Node: /ru/CryptoPro/JCP/Random.CertifiedRandom_class_RequirePhysical=true
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref get
CONFIG: User Preference Node: /ru/CryptoPro/JCP/tools.UnixMutex_class_pathToLocks=/var/opt/cprocsp/tmp
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.Starter <init>
INFO: JCP has been loaded.
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.TestVerifyClassJar run
FINE: file:/home/git/misc/jcptest/jcp/JCP.jar is being checked...
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.JarChecker checkURLSign
FINEST: ENTRY
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.tools.JarChecker checkURLSign
FINE: checkURLSign, url: file:/home/git/misc/jcptest/jcp/JCP.jar...
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getBoolean
CONFIG: User Preference Node: /ru/CryptoPro/JCP/Util.keytool_compat_class_default=false
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getBoolean
CONFIG: User Preference Node: /ru/CryptoPro/JCP/Util.use_cert_stub_class_default=false
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenReader <init>
FINE: Reader name is null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenStore <init>
FINE: RutokenStore (000) loaded. Store name null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenReader <init>
FINE: Reader name is null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenStore <init>
FINE: RutokenStore (001) loaded. Store name null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenReader <init>
FINE: Reader name is null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.KeyStore.Rutoken.RutokenStore <init>
FINE: RutokenStore (002) loaded. Store name null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.Key.GostKeyFactory engineGeneratePublic
FINER: ENTRY
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.Key.GostKeyFactory engineGeneratePublic
FINER: RETURN
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.EllipticParamsSpecDH2012_512_class_defaultECC2012=null
Jul 13, 2023 1:35:34 PM ru.CryptoPro.JCP.pref.JCPPref getOID
CONFIG: User Preference Node: /ru/CryptoPro/JCP/params.EllipticParamsSpec2012_512_class_defaultECC2012=null
Jul 13, 2023 1:35:35 PM ru.CryptoPro.JCP.tools.JarChecker checkURLSign
FINEST: RETURN
Jul 13, 2023 1:35:35 PM ru.CryptoPro.JCP.tools.TestVerifyClassJar run
FINE: file:/home/git/misc/jcptest/jcp/JCP.jar has been successfully checked.
Jul 13, 2023 1:35:35 PM ru.CryptoPro.JCP.Sign.cl_0 engineInitVerify
FINER: ENTRY
Jul 13, 2023 1:35:35 PM ru.CryptoPro.JCP.Sign.cl_0 engineInitVerify
FINER: RETURN
Jul 13, 2023 1:35:35 PM ru.CryptoPro.JCP.Sign.cl_0 engineVerify
FINER: ENTRY
Jul 13, 2023 1:35:35 PM ru.CryptoPro.JCP.Sign.cl_0 engineVerify
FINER: RETURN
Jul 13, 2023 1:35:35 PM org.apache.ws.security.processor.SignatureProcessor verifyXMLSignature
FINE: XML Signature verification has failed
Jul 13, 2023 1:35:35 PM org.apache.ws.security.processor.SignatureProcessor verifyXMLSignature
FINE: Signature Validation check: false
Jul 13, 2023 1:35:35 PM org.apache.ws.security.processor.SignatureProcessor verifyXMLSignature
FINE: Reference #id-1 check: false
org.apache.ws.security.WSSecurityException: The signature or decryption was invalid
at org.apache.ws.security.processor.SignatureProcessor.verifyXMLSignature(SignatureProcessor.java:455)
at org.apache.ws.security.processor.SignatureProcessor.handleToken(SignatureProcessor.java:230)
at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:402)
at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:309)
at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:254)
at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngine.java:208)
Еще вопрос по библиотеке xmlsec - в дистрибут jcp включен xmlsec-2.1.2.jar, а wss4j 1.6.19 тянет xmlsec:1.5.8. В итоге какую следует использовать?
|