AnsweredAssumed Answered

Dummy Guide for :- Solr Applying new SSL certificates

Question asked by bisana on Aug 26, 2012
Latest reply on Aug 29, 2012 by sudehely
Hi
I just finished applying the new solr SSL certification.
I refered the link "http://wiki.alfresco.com/wiki/Alfresco_And_SOLR#Generating_new_SSL_certificates"
I had lots of confusion when I started, mainly becasue of lack of exposure, I was wondering if some thing happens wrong, my instance will not work,later I thought I will go ahead, This is what I have done

made a copy of the existing Alfresco installation directory, I did this because if anything goes wrong, I can restore to the default
Then downloaded "alfresco-community-solr-4.0.e.zip"   [url]https://process.alfresco.com/ccdl/?file=release/community/build-00007/alfresco-community-solr-4.0.e.zip [/url]
Unziped  "alfresco-community-solr-4.0.e.zip" [I was worried where to unzip, you can create a new directory any where and unzip it]
now in the unzip solr directory, you go to "solrDire/alf_data/keystore/ "
You will see "generate_keystores.sh" , make a copy of it named"generate_keystores.sh-org" [This is in case if U want to get the orginal file]
Edit "generate_keystores.sh" ,
change
[b]ALFRESCO_HOME=/opt/alfresco-4.0.2[/b]
  to
ALFRESCO_HOME=/opt/UrAlfrescoInstalDir

Now  do chmod +x generate_keystores.sh

then run it using
./generate_keystores.sh
U will get the following simmilar results

Using CATALINA_BASE:   /opt/UrDMInstallDir/tomcat
Using CATALINA_HOME:   /opt/UrDMInstallDir/tomcat
Using CATALINA_TMPDIR: /opt/UrDMInstallDir/tomcat/temp
Using JRE_HOME:        /opt/UrDMInstallDir/java
Using CLASSPATH:       /opt/UrDMInstallDir/tomcat/bin/bootstrap.jar
PID file (/opt/UrDMInstallDir/tomcat/temp/catalina.pid) found but no matching process was found. Stop aborted.
/opt/UrDMInstallDir/tomcat/scripts/ctl.sh : tomcat could not be stopped
Certificate stored in file </home/alfresco/ssl.repo.crt>
Certificate stored in file </home/alfresco/ssl.repo.client.crt>
Certificate was added to keystore
Certificate was added to keystore
Certificate was added to keystore
Certificate update complete
Please ensure that you set dir.keystore=/opt/UrDMInstallDir/alf_data/keystore in alfresco-global.properties
Done, now u have updates solr SSL certificates

Outcomes