...
- Download the program from Andreas's Blog.
- Compile
Compile% javacCode Block % javac
InstallCert.java
Obtain SSL Certificates
- Obtain the SSL certificate for sandbox.google.com% java InstallCert com
Code Block % java InstallCert sandbox.google.com
- Obtain the SSL certificatate for checkout.google.com% java InstallCert com
Code Block % java InstallCert checkout.google.com
Export Certificates to file
- Export the certificate for sandbox.google.com from the keystore created by InstallCert
Code Block % keytool -export -file sandbox.cer -alias sandbox.google.com-1 -keystore jssecacerts -storepass changeit
- Export the certificate for checkout.google.com from the keystore created by InstallCert
Code Block % keytool -export -file checkout.cer -alias checkout.google.com-1 -keystore jssecacerts -storepass changeit
- Copy both certificates to framework/base/config/
Code Block % copy *.cer %OFBIZ_HOME%/framework/base/config
- Change into the correct directory
Code Block % cd %OFBIZ_HOME%/framework/base/config
Import Certificates into OFBiz Trust Store
- Import the certificate for sandbox.google.com into ofbiztrust.jks% keytool jks
Code Block % keytool -import -alias sandbox.google.com-1 -file sandbox.cer -keypass changeit -storetype jks -keystore ofbiztrust.jks -storepass changeit
- Import the certificate for checkout.google.com into ofbiztrust.jks% keytool jks
Code Block % keytool -import -alias sandbox.google.com-1 -file sandbox.cer -keypass changeit -storetype jks -keystore ofbiztrust.jks -storepass changeit
Configure
Configurations are don in hot-deploy/googlecheckout/config/googleCheckout.properties
...
Code Block |
---|
<request-map uri="google"> <security auth="false" https="false"/> <event type="service" invoke="transmitRequest"/> <response type="view" name="success" value="google"/> </request-map> |
...