I'm going crazy to make operative my CEP server. I need to import a trusted certificate to CEP for HTTPS connections. I followed the steps at https://docs.wso2.com/display/CEP400/Setting+up+Keystores, but the procedures seems obsolete (the latter) or incomplete (the former). For example, the first one describes the configuration files modifications, but I am not able to find secret-conf.properties file. Where can I find a rigorous step-by-step procedure to import a trusted certificate into CEP?
Just an update I imported successfully the trusted certificate into the client-truststore.jks file, but the keystore I see on the key store management page is wso2carbon.jks, because:
- wso2carbon.jks: This keystore contains a key pair and is used by default in your Carbon server for all of the purposes explained above.
- client-truststore.jks: This is the default trust store, which contains the trusted certificates of the keystore used in SSL communication.
So it is not enough to modify the client-truststore.jks file but it is needed to update the wso2carbon.jks file with the new certificate, too. For this reason, the given solution is not complete.
It Works but... I did it and the certificate was added. Now I have to modify the carbon configuration because it is configured as localhost. How can I do that? Thanks
Other update I found my mistake following the procedure. Now I am at a point where a receive this error when I modify the carbon.xml file:
[Fatal Error] :1:250: Character reference "" is an invalid XML character.
ERROR {org.wso2.carbon.ndatasource.core.DataSourceRepository} - Error in loading RDBMS configuration: Error in building Document
org.wso2.carbon.ndatasource.common.DataSourceException: Error in loading RDBMS configuration: Error in building Document
at org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader.loadConfig(RDBMSDataSourceReader.java:48)
at org.wso2.carbon.ndatasource.rdbms.RDBMSDataSourceReader.createDataSource(RDBMSDataSourceReader.java:59)
I noted the error appears when I write the private key into the XML file so I think it is a character escaping problem.
I think to be very close to the solution. Just a little step.
Thanks
Michele