FlexHub Forum

FlexHub General => Help / Support => FAQ => Topic started by: FlipFlop™ on August 28, 2011, 13:48:34

Title: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: FlipFlop™ on August 28, 2011, 13:48:34
FlexHub currently only support SSL/TLS for Linux, the lib used in Windows can cause the hub to freeze.

For FlexHub to be able to use SSL/TLS, you will need to generate a selfsigned certificate.
To generate a selfsigned certificate you need to follow these 3 steps:

Step 1: Generate a RSA private key: openssl genrsa -out key.pem 1024
(it's possible that this command needs su rights, then use: sudo openssl genrsa -out key.pem 1024)

Step 2: Generate a signing request: openssl req -new -key key.pem -out req.pem

Step 3: Generate the certificate: openssl req -x509 -key key.pem -in req.pem -out cert.pem -days 3650

Then place the files key.pem and cert.pem in the subfolder 'certificates' of the FlexHub folder


After that you can add secure ports with the hub gui, or use the startup option --sport=<portnumber>
Note that normal (unsecure) connections won't be allowed on secure ports.
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: Hamachi on August 28, 2011, 15:12:02
THANKS...

NICE WORK...

ncdcs / adcs :)

[28-08-2011 15:10:48] <FlexBot> You are now connected through TLS, traffic to and from the hub is encrypted.
[28-08-2011 15:10:48] <FlexBot> FlexHub Beta 0.1 svn: 1146 - Made by Daywalker and FlipFlop.
[28-08-2011 15:10:48] <FlexBot> Currently there are 1 users online and the hub uptime is: 0 day(s) 00:00:16
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: Neolo on September 18, 2011, 18:02:29
So as I understand people that are connected to unsecured ports can see people from secured ports?
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: FlipFlop™ on September 18, 2011, 20:45:38
Yes ofcourse, just like in any other ADCS hub that has a non secure port opened.

But all traffic between the hub and the secure connected user is encrypted, including messages from other non-secured users that go through the hub. The hub encrypts it and sends it to the secure connected user.

If you don't want users in your hub that use non-secure connections, you can simply close those ports and only use a secure one.
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: FlipFlop™ on December 29, 2011, 11:56:57
Support question from kleinergeist191 moved here: http://www.flexhub.org/forum/index.php?topic=370.0 (http://www.flexhub.org/forum/index.php?topic=370.0)
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: FlipFlop™ on January 12, 2012, 12:41:38
The next release of FlexHub will have a new command !createcert to automatically generate and load a selfsigned TLS certificate. A button for certificate generation is added too.
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: Kaas on January 26, 2012, 17:46:43
The next release of FlexHub will have a new command !createcert...

Can't wait to have that cmd.. Just can't get into flexhub with encryption...
Guess it's my thing somewhere with the cert's i created..
Once encryption is working i can get on with replacing ptokax ;p

Keep it up!
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: Hamachi on January 26, 2012, 21:38:59
If you use windows you can not use TLS !!!

If you use Linux it is not hard to setup TLS ;)
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: Kaas on January 27, 2012, 23:12:44
If you use windows you can not use TLS !!!

If you use Linux it is not hard to setup TLS ;)
...

Lol so i'll have to wait untill it's possible @ windows.
I'll stop trying and start adch in the mean while.
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: Neolo on March 03, 2013, 10:18:22
I unable to start secure port on Ubuntu 12.04 x64 + x32 env. installed.

!createcert
Secure connections aren't supported in FlexHub for Windows yet. Use !createcert -h for more details.

I'm not on Windows, wtf  ???
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: FlipFlop™ on March 03, 2013, 12:32:20
Neolo, can you make sure that the !createcert wasn't by accident given in the wrong hub?

It's highly unlikely that Flexhub would report the wrong OS.
Title: Re: How to enable ADCS / NMDCS on FlexHub for Linux
Post by: en_dator on March 06, 2013, 20:30:06
yes its very unlikey, we still did just that. But we blame ubuntu for doing things differently.


The os detection is changed for next version so should hold for a while longer, i hope