Hello, Pavel. Found your environment in the end of the mail.
> My environment: JDK 1.8.0_151-b12, Ubuntu 17.10 Seems, you should enable JCE [1], [2] or update your JDK. Actually, I don't executed any manual steps on my local environment. host:~/src/ignite:[master]$ java -version java version "1.8.0_161" Java(TM) SE Runtime Environment (build 1.8.0_161-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode) host:~/src/ignite:[master]$ uname -a Linux Host 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux [1] https://www.oracle.com/technetwork/java/javase/8u151-relnotes-3850493.html, section "New Security property to control crypto policy" [2] https://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html В Пн, 29/10/2018 в 15:45 +0300, Pavel Kovalenko пишет: > Nikolay, > > JDK 1.8.0_151-b12 > > пн, 29 окт. 2018 г. в 15:31, Nikolay Izhikov <nizhi...@apache.org>: > > > Hello, Pavel. > > > > What jdk version do you use? > > > > В Пн, 29/10/2018 в 15:30 +0300, Pavel Kovalenko пишет: > > > Hello Igniters, > > > > > > I have a problem with running TDE tests on my local machine. > > > > > > When I start e.g. EncryptedCacheDestroyTest I get following exception: > > > > > > > javax.cache.CacheException: class > > > > > org.apache.ignite.IgniteCheckedException: Illegal key size > > > > > > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.processors.cache.GridCacheUtils.convertToCacheException(GridCacheUtils.java:1337) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.IgniteKernal.createCache(IgniteKernal.java:2942) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.encryption.AbstractEncryptionTest.createEncryptedCache(AbstractEncryptionTest.java:173) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.encryption.AbstractEncryptionTest.createEncryptedCache(AbstractEncryptionTest.java:162) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.encryption.EncryptedCacheDestroyTest.testEncryptedCacheFromGroupDestroy(EncryptedCacheDestroyTest.java:72) > > > > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > > > > > at > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > > > > > > > > at > > > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > > > > > > > > at java.lang.reflect.Method.invoke(Method.java:498) > > > > > > > > at junit.framework.TestCase.runTest(TestCase.java:176) > > > > > > > > at > > > > > > > > > org.apache.ignite.testframework.junits.GridAbstractTest.runTestInternal(GridAbstractTest.java:2206) > > > > > > > > at > > > > > > > > > org.apache.ignite.testframework.junits.GridAbstractTest.access$000(GridAbstractTest.java:144) > > > > > > > > at > > > > > > > > > org.apache.ignite.testframework.junits.GridAbstractTest$5.run(GridAbstractTest.java:2121) > > > > > > > > at java.lang.Thread.run(Thread.java:748) > > > > > > > > Caused by: class org.apache.ignite.IgniteCheckedException: Illegal key > > > > size > > > > > > > > at > > > > org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7431) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.util.future.GridFinishedFuture.get(GridFinishedFuture.java:102) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.IgniteKernal.createCache(IgniteKernal.java:2937) > > > > > > > > ... 12 more > > > > > > > > Caused by: class org.apache.ignite.spi.IgniteSpiException: Illegal key > > > > size > > > > > > > > at > > > > > > > > > org.apache.ignite.spi.encryption.keystore.KeystoreEncryptionSpi.doEncryption(KeystoreEncryptionSpi.java:288) > > > > > > > > at > > > > > > > > > org.apache.ignite.spi.encryption.keystore.KeystoreEncryptionSpi.encrypt(KeystoreEncryptionSpi.java:211) > > > > > > > > at > > > > > > > > > org.apache.ignite.spi.encryption.keystore.KeystoreEncryptionSpi.encryptKey(KeystoreEncryptionSpi.java:300) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.managers.encryption.GridEncryptionManager.createKeys(GridEncryptionManager.java:753) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.managers.encryption.GridEncryptionManager.generateKeys(GridEncryptionManager.java:608) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.processors.cache.GridCacheProcessor.generateEncryptionKeysAndStartCacheAfter(GridCacheProcessor.java:3650) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.processors.cache.GridCacheProcessor.dynamicStartCache(GridCacheProcessor.java:3632) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.processors.cache.GridCacheProcessor.dynamicStartCache(GridCacheProcessor.java:3543) > > > > > > > > at > > > > > > > > > org.apache.ignite.internal.IgniteKernal.createCache(IgniteKernal.java:2932) > > > > > > > > ... 12 more > > > > > > > > Caused by: java.security.InvalidKeyException: Illegal key size > > > > > > > > at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1039) > > > > > > > > at javax.crypto.Cipher.init(Cipher.java:1393) > > > > > > > > at javax.crypto.Cipher.init(Cipher.java:1327) > > > > > > > > at > > > > > > > > > org.apache.ignite.spi.encryption.keystore.KeystoreEncryptionSpi.doEncryption(KeystoreEncryptionSpi.java:282) > > > > > > > > ... 20 more > > > > > > > > > > > > > > > > > > > What I should do to avoid the exception above? > > > > > > My environment: JDK 1.8.0_151-b12, Ubuntu 17.10
signature.asc
Description: This is a digitally signed message part