Changes between Version 1 and Version 2 of LocalOrcaCompile

Show
Ignore:
Timestamp:
10/30/08 15:17:22 (11 years ago)
Author:
sayler (IP: 152.3.136.30)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LocalOrcaCompile

    v1 v2  
    2626== Fixing SSL errors == 
    2727 
    28 An easy solution to the first problem requires solving the second one first.  In order for Java to trust the CA that signed the SSL certificate used by https://geni-orca.renci.org we need to import this into the [Java keystore|http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/keytool.html] 
     28An easy solution to the first problem requires solving the second one first.  In order for Java to trust the CA that signed the SSL certificate used by https://geni-orca.renci.org we need to import this into the Java-local keystore with [http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/keytool.html Keytool ] 
    2929 
    30 XXX finish this  
     30Assuming $JAVA_HOME is defined (eg export JAVA_HOME="/Library/Java/Home" on OS X) the following horrible one-liner will do this: 
     31 
     32{{{ 
     33echo |openssl s_client -connect geni-orca.renci.org:443 2>&1 |sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo keytool -import -trustcacerts -alias geni-orca -keystore  $JAVA_HOME/lib/security/cacerts -storepass changeit -noprompt 
     34}}} 
     35 
     36This uses openssl to retrieve the CA cert, then tells keytool to add the certificate to its trusted CA list.  "changeit" is the default keystore password.   
     37 
    3138~~~~ 
    3239 
     
    3441 
    3542You could do this by editing files in ~/.m2/settings.xml (at least I think so).  I find it's easier just to  
    36 [[[ 
     43{{{ 
    3744 svn checkout https://geni-orca.renci.org/svn/orca/pom/trunk pom 
    3845 cd pom 
    3946 mvn install 
    40 ]]] 
     47}}} 
    4148 
    4249Once you've done this a local package with information about the Orca project (and its repository at geni-orca.renci.org) will be placed in your ~/.m2 directory.   
    43