Skip to contentSkip to conversation

make --persist-key always-on and remove "off" code path

Openvpn-devel Gert Doering 4 participants 4 messages Apr 9, 2021 – May 16, 2021

lore
Share & tools
lore
#0 lore raw

Hi,

there was a big discussion on the IRC channel today about interactions between "--chroot" and "--persist-key" and how and when stuff is reloaded or not.

Now, we all seem to agree that OpenVPN has way too many obscure options, so I propose to get rid of another one, namely --persist-key - and I suggest to make it permanently-active ("load the keys at startup, and then do not touch these files again").

Unless someone explains to me in simple words what the benefit is of reloading the keys on every new outbound connection... yes, you *could* put in a new key/cert/CA set while OpenVPN is active, and then trigger a SIGUSR1 restart, having it "seamlessly" move to new credentials...

But...

How many of you do that? Instead of just calling "service openvpn restart"?

I do not use --persist-key, but I still restart my services after fiddling with configs...

gert

Signature · 6 lines
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             [email protected]...
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi,

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Friday, 9 April 2021 17:28, Gert Doering <[email protected]...> wrote:

<snip>

Quoted 3 lines

I do not use --persist-key, but I still restart my services after fiddling with configs...

Same.

To add weight here, I would estimate 95%+ of all posts on the forum, which include a config file, have --persist-key enabled, regardless.

Regards
R
-----BEGIN PGP SIGNATURE-----
Version: ProtonMail

wsBzBAEBCAAGBQJgcIRiACEJEE+XnPZrkLidFiEECbw9RGejjXJ5xVVVT5ec 9muQuJ2w0wgAv4Yv3T+4nsxYxocmBdlAGzZAuOOYsg6d9wWyHavY3YXCNWSh CN+8Fi4ruR3iaeEnVa98RlV/SvLkns5cyRRr2XEG/OMOthc4237o33W8BrRX 8zYkxezaYSGWB7Q8KJmyHFnAc3njrVdXRN2INMbZyn9dHUOSIYD8ZUmntxPR +ftK2/idc9ftk1wVqBL5oIngCaFCm1Y/lfG76Ae6GTAha3pEqwh0qj573IC3 Mgyu5JYCCjbYWcojM2nilOWCDPaWPQaasVmLe9Pu31yUCWbTLy4Y/nZuwLpA cSWUV9E+rqQ+C4ZObxx4MJhVPJfVmKWJtZsbN5vF6OELD/w/iQ0Sgw== =qukX
-----END PGP SIGNATURE-----

#2 lore raw
In reply to Gert Doering

Am 09.04.2021 um 18:28 schrieb Gert Doering:

Quoted 16 lines

Hi,

there was a big discussion on the IRC channel today about interactions between "--chroot" and "--persist-key" and how and when stuff is reloaded or not.

Now, we all seem to agree that OpenVPN has way too many obscure options, so I propose to get rid of another one, namely --persist-key - and I suggest to make it permanently-active ("load the keys at startup, and then do not touch these files again").

Unless someone explains to me in simple words what the benefit is of reloading the keys on every new outbound connection... yes, you *could* put in a new key/cert/CA set while OpenVPN is active, and then trigger a SIGUSR1 restart, having it "seamlessly" move to new credentials...

Quoted 6 lines

But...

How many of you do that? Instead of just calling "service openvpn restart"?

I do not use --persist-key, but I still restart my services after fiddling with configs...

I am also for removing persist-key option (and ignore it if still present) and just always have the same behaviour. I can also not come up with a valid scenario where setting/not setting this option is making a real desirable difference.

Arne

#3 lore raw

Hi,

Quoted 23 lines · Arne Schwabe

Am 09.04.2021 um 18:28 schrieb Gert Doering:

Quoted 21 lines

Hi,

there was a big discussion on the IRC channel today about interactions between "--chroot" and "--persist-key" and how and when stuff is reloaded or not.

Now, we all seem to agree that OpenVPN has way too many obscure options, so I propose to get rid of another one, namely --persist-key - and I suggest to make it permanently-active ("load the keys at startup, and then do not touch these files again").

Unless someone explains to me in simple words what the benefit is of reloading the keys on every new outbound connection...  yes, you *could* put in a new key/cert/CA set while OpenVPN is active, and then trigger a SIGUSR1 restart, having it "seamlessly" move to new credentials...

But...

How many of you do that?  Instead of just calling "service openvpn restart"?

Quoted 8 lines
Quoted 3 lines

I do not use --persist-key, but I still restart my services after fiddling
with configs...

I am also for removing persist-key option (and ignore it if still present) and just always have the same behaviour. I can also not come up with a valid scenario where setting/not setting this option is making a real desirable difference.

For what it's still worth: I too agree that persist-key should be always-on and removed as on option.

-Steffan