Пишу в обработчике кнопки на сервере:
Код:Security.addProvider(new ru.CryptoPro.JCP.JCP());
KeyStore trustedRootCertStore = KeyStore.getInstance("CertStore", "JCP");
trustedRootCertStore.load(new FileInputStream("c:\\TrustRoot"), "1".toCharArray());
На последней строке:
Caused by: java.lang.ExceptionInInitializerError
at ru.CryptoPro.JCP.Key.PrivateKeySpec.createKeyfromPassword(Unknown Source) [crypto-jcp-0.0.3.jar:]
at ru.CryptoPro.JCP.KeyStore.TrustStore.a(Unknown Source) [crypto-jcp-0.0.3.jar:]
at ru.CryptoPro.JCP.KeyStore.TrustStore.engineLoad(Unknown Source) [crypto-jcp-0.0.3.jar:]
at java.security.KeyStore.load(KeyStore.java:1214) [rt.jar:1.7.0_10]
at ru.ssksoft.mfc.frontend.services.crypto.SignServiceImpl.verifySign(SignServiceImpl.java:269) [classes:]
at ru.ssksoft.mfc.frontend.document.impl.GenericDocumentFactoryImpl.verificationDocument(GenericDocumentFactoryImpl.java:123) [classes:]
at ru.ssksoft.mfc.frontend.ui.components.CustomerRequestSignForm.checkSignBtnClick(CustomerRequestSignForm.java:116) [classes:]
at ru.ssksoft.mfc.frontend.ui.components.CustomerRequestSignForm.buttonClick(CustomerRequestSignForm.java:98) [classes:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_10]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_10]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_10]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_10]
at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510) [vaadin-6.8.9.jar:6.8.9]
... 40 more
Caused by: java.lang.NullPointerException
at ru.CryptoPro.JCP.tools.BasicLogger.a(Unknown Source) [crypto-jcp-0.0.3.jar:]
at ru.CryptoPro.JCP.tools.BasicLogger.pref(Unknown Source) [crypto-jcp-0.0.3.jar:]
at ru.CryptoPro.JCP.tools.JCPLogger.pref(Unknown Source) [crypto-jcp-0.0.3.jar:]
at ru.CryptoPro.JCP.pref.JCPPref.getOID(Unknown Source) [crypto-jcp-0.0.3.jar:]
at ru.CryptoPro.JCP.params.e.run(Unknown Source) [crypto-jcp-0.0.3.jar:]
at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_10]
at ru.CryptoPro.JCP.params.AlgIdSpec.<clinit>(Unknown Source) [crypto-jcp-0.0.3.jar:]
... 53 more
С 1.0.53 этот же код работает...