Hi,

I was trying to capture WSO2Events from Identity server, in Stream
Processor and got stuck when I got a long stack trace of an error, which is
caused by certification error.

The reason was IS cannot connect with the Stream Processor because it did
not "Trust" Stream Processor.

I resolved it in following way, and thought to post it in dev, in case of
anyone facing the same issue.

    - Go inside the keystore directory of SP.
       <$SP_HOME>/resources/security/

    - Use following command to export a certificate from SP
      keytool -export -alias wso2carbon -keystore wso2carbon.jks -storepass
wso2carbon -rfc -file sp.pem

    - This will create a file sp.pem which now you need to copy into the IS
truststore
      cp sp.pem <$IS_HOME>/repository/resources/security/

    - Now issue the following command to import the certificate
      keytool -import -alias sp -keystore client-truststore.jks -storepass
wso2carbon -file sp.pem

Now you can communicate between IS and the SP, without any "Trust Issues"

-- 
Thanks and Best Regards
Thisaru Guruge
Software Engineer
WSO2 Inc.: http://www.wso2.com

Mobile: +94 71 720 9720
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to