strongMan icon indicating copy to clipboard operation
strongMan copied to clipboard

How to use Certificates from swan.conf in strongMan ?

Open Spider84 opened this issue 1 year ago • 6 comments

Hello!

I use Let's Encrypt certificate that has only 3 month life cycle. In strongMan GUI no way to update certificate. In Issue suggested to use directly added certificate to swan.conf. BUT HOW? How select this certificate added in swan.conf in connection from Web UI?

Spider84 avatar Jan 10 '25 08:01 Spider84

Yeah, I guess that doesn't really work. You'd have to be able to configure the identity without selecting a certificate, but that's apparently not possible at the moment. So if you really want to use strongMan, you'd have to update the database I suppose.

tobiasbrunner avatar Jan 10 '25 09:01 tobiasbrunner

can you show example how to update certificate data in database? What and where need to be updated?

UPDATE certificates_certificate SET
der_container = '<WHAT?>',
public_key_hash = 'H:E:X.....',
serial_number = <serial>,
valid_not_after = 'date',
valid_not_before = 'date'
WHERE id = <id>

and save for certificates_privatekey

what is der_container ?

Spider84 avatar Jan 10 '25 09:01 Spider84

what is der_container ?

The DER (i.e. binary) encoding of the certificate.

By the way, what's your reason for using strongMan? Because it seems doing this via swanctl.conf would be easier.

tobiasbrunner avatar Jan 10 '25 10:01 tobiasbrunner

I need Web UI to manage user list. Our "administrator" is to stupid to edit configs...

Spider84 avatar Jan 10 '25 10:01 Spider84

OK, since the users (EAP secrets) are independent of the configs, you could just manage those via strongMan and use a swanctl.conf-based config with EAP authentication for the connection.

tobiasbrunner avatar Jan 10 '25 10:01 tobiasbrunner

Hmm... I will try. But in this case, we will lose online status indication...

Spider84 avatar Jan 10 '25 12:01 Spider84