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
- Is there any rule on having special characters in the password for Solr keystore?
- Should password start with alpha characters?
- 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.
where key is the file with the password in single line. Check the arrow (<) near the file name.