FlexHub Forum

Debian bug

Debian bug
« on: April 17, 2014, 15:28:07 »
command:
!createcert -force


msg:
Creating a selfsigned TLS certificate failed, check Certificate.log in the logs folder. Use !createcert -h for more details.


log:
./MakeCert.sh: line 2: sudo: command not found

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 503
Re: Debian bug
« Reply #1 on: April 21, 2014, 16:31:40 »
Thanks for reporting!

The problem could be that in this case sudo isn't needed run openssl.
What you could do is manually edit the MakeCert.sh file (in FlexHub root folder), and remove the sudo from the openssl line. Then make sure the file MakeCert.sh can't be modified but can be executed.

Then run !createcert -force
The writing to MakeCert.sh should fail silently, and will then execute the manually modified file.
« Last Edit: April 21, 2014, 19:49:13 by FlipFlop™ »
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.