[ 
https://issues.apache.org/jira/browse/SOLR-11690?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16602921#comment-16602921
 ] 

Luca commented on SOLR-11690:
-----------------------------

No,

there is still a problem that make me lose about 4h:

openssl changed the message digest default from MD5 to SHA256 
([https://github.com/openssl/openssl/issues/2206)] but Solr use MD5, so the 
right command to encrypt the password must include
{quote}-md md5
{quote}
Please include this in your commit

> DIH JdbcDataSource - Problem decoding encrypted password using encryptKeyFile
> -----------------------------------------------------------------------------
>
>                 Key: SOLR-11690
>                 URL: https://issues.apache.org/jira/browse/SOLR-11690
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: contrib - DataImportHandler
>    Affects Versions: 6.6.2
>            Reporter: Rajesh Arumugam
>            Assignee: Jan Høydahl
>            Priority: Major
>              Labels: easyfix
>             Fix For: master (8.0), 7.5
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> The password decryption is not working fine because of a bug in 
> JdbcDataSorce.java -> decryptPwd(Context context, Properties initProps) 
> method. The problem is due to bad construction of key string while making a 
> call to CryptoKeys.decodeAES(). Due to this the CryptoKeys throws "*Bad 
> password, algorithm, mode or padding; no salt, wrong number of iterations or 
> corrupted ciphertext.*" exception while trying to decode password.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to