segunda-feira, maio 28, 2018

Enable SSL SOLR

Create a certificate with keytool:
Open CMD:
"%java_home%\bin\keytool" -genkeypair -alias solr-ssl -keyalg RSA -keysize 2048 -keypass mysecret -storepass mysecret -validity 9999 -keystore solr-ssl.keystore.jks -ext SAN=DNS:localhost,IP:172.31.87.2,IP:127.0.0.1 -dname "CN=localhost, OU=MaykonCorp, O=Maykon, L=Florianopolis, ST=SC, C=BR"

Convert JKS to PKCS12 :

"%java_home%\bin\keytool" -importkeystore -srckeystore solr-ssl.keystore.jks -destkeystore solr-ssl.keystore.p12 -srcstoretype jks -deststoretype pkcs12

Double click on the solr-ssl.keystore.p12 file and import to local machine.
Type password add place the certificate to Trusted Root Certification Authorities



Open solr.in.cmd:
Edit these lines:





I moved solr-ssl.keystore.p12 and solr-ssl.keystore.jks to C:\solr\server\etc

Nenhum comentário: