Re: [JSch-users] Jsch stopped working with Java8
Status: Alpha
Brought to you by:
ymnk
From: Lothar K. <jo...@ki...> - 2014-07-29 12:31:43
|
Am 29.07.2014 14:03, schrieb Marc Logemann: > here we go with more info. Everything i can get from client side. > I dont have control over the remote server: > > INFO: Connecting to xxxx.deutschepost.de <http://xxxx.deutschepost.de> port 22 why is the servername secret. This shouzld be a public server. Try the following program import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; public class CheckCrypto { public static void main(String[] args){ String cryptoAlg = "AES"; try{ SecretKeySpec keyspec = new SecretKeySpec(new byte[32], cryptoAlg); Cipher c = Cipher.getInstance(cryptoAlg + "/CBC/NoPadding"); c.init(Cipher.ENCRYPT_MODE, keyspec, new IvParameterSpec(new byte[16])); } catch(Exception e){ System.err.println("************ The Java Virtual Machine can't handle strong cryptography.\n************ This will lead to problems with some services and subsystems!"); } } } If you get the exception-message, you still need to install the unlimimted strength cryptography policy files. Cheers, Lothar |