How to edit and change “/usr/bin/snap get microstack config.tls.generate-self-signed” output from true to false in ubuntu 20.04?

Asked by Glenford Robinson

While installing microstack using snap into ubuntu 20.04, the snap script “snap get microstack config.tls.generate-self-signed,” which currently defaults to true initiated a self-signed certificate process, which caused my nginx website on the server to lose TLS authentication with Cloudflare, thus issuing a 526 error code, which you will see if you access my domain,

This means that Cloudflare is unable to confirm that my server has a valid Cloudflare CA Origin certificate that can be authenticated by Cloudflare. Therefore, I would like to change the boolean default of the "snap get microstack config.tls.generate-self-signed" Output from true to false because this was what caused the change of my CA Origin certificate to change to a self-signed certificate that caused my server to lose the ability to authenticate with Cloudflare servers via TLS.

On ubuntu 20.04 LTS, the file is located at the following directory: “/usr/bin/snap get microstack config.tls.generate-self-signed”
but as you will see, the file is in binary format. Is there a way around editing this file with a command or command line tool instead of actually playing around with the machine language formatted code?

If you run the following command: "snap get microstack config.tls.generate-self-signed" on the command line, you will get an output of true, but this is not what I want. Instead, I want the output to be false when this file is run; for example~$ sudo snap get microstack config.tls.generate-self-signed
Output: true

But an Output of false is what I want; however, when I opened the file, I saw that the file was in machine readable format; so, I am saying to myself that there has to be a better way to change this boolean Output of true to a boolean Output of false by running a particular command or using a particular tool. However, I don't know which command to run or which tool to use.

This is why I am asking the community for a little help!

Any help will be appreciated.

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :

Have you tried

snap set microstack config.tls.generate-self-signed=false


Can you help with this problem?

Provide an answer of your own, or ask Glenford Robinson for more information if necessary.

To post a message you must log in.