1

In my Jelastic environment, I would like to disable built-in SSL. Through the Jelastic dashboard, it boils down to clicking on this:

enter image description here

and then switching it off by clicking the "on" button:

enter image description here

I am looking for the way to disable it through the Jelastic API. I tried to call the following methods, without success:

  • jelastic.environment.binder.DisableSSL
  • jelastic.environment.binder.DeleteSSL

Those two methods either do nothing or return the following error:

SSL certificate isn't bound inside container

How can I achieve what I want?

Laurent Michel
  • 1,069
  • 3
  • 14
  • 29

2 Answers2

1

I think the only way is to set sslstate via changeTopology - but beware that you need to pass the whole environment topology perfectly matched to its existing state (node composition and cloudlets etc) to avoid any unwanted changes!

See network tab in browser devtools when performing this step via the dashboard for a full example.

Anything that you omit will be removed...

Damien - Layershift
  • 1,508
  • 8
  • 15
  • It cannot be that annoying. If that's really the case, I'll just fork the manifest I need and break the SSL lock directly there. – Laurent Michel Feb 21 '23 at 13:41
0

It appears there is an undocumented api method that allows to do exactly what I want to do. Here's an example manifest illustrating that method:

type: update
name: Disable SSL

onInstall:
  - jelastic.environment.control.editenvsettings:
      settings: 
        sslstate: false

The latest documentation I have access to, for Jelastic API v8.2.1, makes no mention of it. However, it works.

Laurent Michel
  • 1,069
  • 3
  • 14
  • 29