Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. View the certificate details (the steps vary by browser) and then export the trust certificate to the file system.

  2. Use the ESB Management Console or the following command to import that certificate into the ESB client keystore. keytool -importcert -file CERT_FILE_NAME -keystore <ESB_HOME>/repository/resources/security/client-truststore.jks -alias "CERT_NAME"

    NOTE : CERT_FILE_NAME - Replace CERT_FILE_NAME with the file name that was extracted from spotify with the extension. (e.g. spotify.crt)

    CERT_NAME - Replace CERT_NAME with an arbitrary name for the certificate. (e.g. spotify)

  3. ESB should be configured as below.

    Ensure that the following Axis2 configurations are added and enabled in the <ESB_HOME>\repository\conf\axis2\axis2.xml file.

    Required message formatters
    Code Block
    titlemessageFormatters
    <messageFormatter contentType="text/html" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
    <messageFormatter contentType="text/plain" class="org.wso2.carbon.relay.ExpandingMessageFormatter"/>
    Required message builders
    Code Block
    titlemessageBuilders
    <messageBuilder contentType="text/html" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
    <messageBuilder contentType="text/plain" class="org.wso2.carbon.relay.BinaryRelayBuilder"/>
  4. Restart the server and deploy the Spotify configuration.

...

Code Block
languagexml
titleinit
<spotify.init/>

...