Adding SSL certificate

(Ido Tamir) #1

Hello,
I try to add a Certificate to my application, but the config is somehow not integrated. I know from other items in the config file, that its being read and used.
thank you very much,
ido

in application.conf:

include "other"

in other.conf:

play.ws.ssl {
  trustManager = {
      stores = [
        { path : "/my/path/to/application/conf/certificate.jks", type: "JKS", password : "XXXXXXX" }  
      ]
  }
}

but grepping for stores when the config gets printed does not show the key:

          # The key stores
                    "stores" : []
                        # The key stores should look like this
                        "stores" : {
                            # The data for the keystore. Either this must be non null, or path must be non null.
                            # The path to the keystore file. Either this must be non null, or data must be non null.
                            # The store type. If null, defaults to the platform default store type, ie JKS.
                    # The trust stores
                    "stores" : []
                # The key stores should look like this
                "stores" : {
                    # The data for the keystore. Either this must be non null, or path must be non null.
                    # The password for loading the keystore. If null, uses no password.
                    # The path to the keystore file. Either this must be non null, or data must be non null.
                    # The store type. If null, defaults to the platform default store type, ie JKS.
            # The key stores
            "stores" : []
                # The key stores should look like this
                "stores" : {
                    # The data for the keystore. Either this must be non null, or path must be non null.
                    # The path to the keystore file. Either this must be non null, or data must be non null.
                    # The store type. If null, defaults to the platform default store type, ie JKS.
            # The trust stores
            "stores" : []