afev написал:Попробуйте
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
connection.connect();
Переустановил JTLS и JCP снова.
Теперь ошибка - javax.net.ssl.SSLException: java.lang.UnsupportedOperationException.
При этом пробовал скопировать US_export_policy.jar в local_policy.jar. Не помогло.
июн 27, 2012 11:54:36 AM ru.CryptoPro.ssl.SSLContextImpl d
INFO: defaultStoreProvider =
июн 27, 2012 11:54:36 AM ru.CryptoPro.ssl.SSLContextImpl d
INFO:
июн 27, 2012 11:54:37 AM ru.CryptoPro.JCP.tools.Starter check
INFO: Loading JCP 1.0.53
июн 27, 2012 11:54:37 AM ru.CryptoPro.JCP.tools.Starter check
INFO: JCP loaded.
июн 27, 2012 11:54:38 AM ru.CryptoPro.JCP.tools.AbstractLicense checkSerialHash
INFO: Check license without company name: true
июн 27, 2012 11:54:38 AM ru.CryptoPro.ssl.G <init>
WARNING: %% No appropriate keys for handshake
PATH: C:\Users\sdakin\Local Settings\Application Data\Crypto Pro
javax.net.ssl.SSLException: java.lang.UnsupportedOperationException
at ru.CryptoPro.ssl.Y.a(Unknown Source)
at ru.CryptoPro.ssl.M.a(Unknown Source)
at ru.CryptoPro.ssl.M.a(Unknown Source)
at ru.CryptoPro.ssl.M.a(Unknown Source)
at ru.CryptoPro.ssl.M.startHandshake(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:515)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
at javaapplication7.JavaApplication7.main(JavaApplication7.java:46)
Caused by: java.lang.UnsupportedOperationException
at javax.crypto.CipherSpi.engineGetKeySize(CipherSpi.java:926)
at javax.crypto.Cipher.passCryptoPermCheck(Cipher.java:1052)
at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1010)
at javax.crypto.Cipher.implInit(Cipher.java:786)
at javax.crypto.Cipher.chooseProvider(Cipher.java:849)
at javax.crypto.Cipher.init(Cipher.java:1213)
at javax.crypto.Cipher.init(Cipher.java:1153)
at ru.CryptoPro.ssl.a.c.a(Unknown Source)
at ru.CryptoPro.ssl.a.e.a(Unknown Source)
at ru.CryptoPro.ssl.Q.a(Unknown Source)
at ru.CryptoPro.ssl.Q.a(Unknown Source)
at ru.CryptoPro.ssl.i.a(Unknown Source)
at ru.CryptoPro.ssl.M.a(Unknown Source)
at ru.CryptoPro.ssl.M.i(Unknown Source)
... 5 more