简体   繁体   中英

Solr - Password with Special Character in SOLR_SSL_KEY_STORE_PASSWORD throw keystore password was incorrect

When setting up SSL for Solr (in windows OS), keystore password with special characters throws "keystore password was incorrect" error.

Sample Password: 7V4StJ!Qc%8V

  1. Is there any rule on having special characters in the password for Solr keystore?
  2. Should password start with alpha characters?
  3. If I add password with single quotes in Solr.in.cmd, I am still getting error. SOLR_SSL_KEY_STORE_PASSWORD='7V4StJ!Qc%8V'

How should I handle this?

I am able to fix it by keeping the password with special character in a separate file (single line file) and while setting the variable in batch file, I am reading it from the file and setting it up. It worked.

set /p SOLR_SSL_TRUST_STORE_PASSWORD=<key

where key is the file with the password in single line. Check the arrow (<) near the file name.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM