[jboss-jira] [JBoss JIRA] (ELY-1308) Alias from dependent credential store is not avalaible on server start
Jan Kalina (JIRA)
issues at jboss.org
Tue Jul 25 10:32:00 EDT 2017
[ https://issues.jboss.org/browse/ELY-1308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439959#comment-13439959 ]
Jan Kalina edited comment on ELY-1308 at 7/25/17 10:31 AM:
-----------------------------------------------------------
BouncyCastle Crypto initialization using *cipher.init(Cipher.ENCRYPT_MODE, key)* is failing (BouncyCastle params obtaining requires inizialized SPI, but initialization requires permission check which needs to obtain params) - used workaround on elytron side: using *cipher.init(Cipher.ENCRYPT_MODE, key, (AlgorithmParameterSpec) null)*
was (Author: honza889):
BouncyCastle Crypto initialization using *cipher.init(Cipher.ENCRYPT_MODE, key)* is failing - used workaround on elytron side: using *cipher.init(Cipher.ENCRYPT_MODE, key, (AlgorithmParameterSpec) null)*
> Alias from dependent credential store is not avalaible on server start
> ----------------------------------------------------------------------
>
> Key: ELY-1308
> URL: https://issues.jboss.org/browse/ELY-1308
> Project: WildFly Elytron
> Issue Type: Bug
> Components: Credential Store
> Affects Versions: 1.1.0.CR2
> Reporter: Jan Kalina
> Assignee: Jan Kalina
> Priority: Critical
>
> BouncyCastle external CredentialStore fail to store secret:
> {code}
> KeyStoreCredentialStore: flushing failed: java.lang.NullPointerException
> at org.bouncycastle.jcajce.provider.BaseCipher.engineGetParameters(Unknown Source)
> at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1020)
> at javax.crypto.Cipher.init(Cipher.java:1245)
> at javax.crypto.Cipher.init(Cipher.java:1186)
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore$ExternalStorage.saveSecretKey(KeyStoreCredentialStore.java:1299)
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore$ExternalStorage.store(KeyStoreCredentialStore.java:1283)
> at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.flush(KeyStoreCredentialStore.java:779)
> at org.wildfly.security.credential.store.CredentialStore.flush(CredentialStore.java:364)
> at org.wildfly.extension.elytron.CredentialStoreResourceDefinition.storeSecret(CredentialStoreResourceDefinition.java:517)
> {code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list