I'm searching for a way to reload new IPSEC certificates without restarting the service and interrupt existing tunnel connections.
As part of the activity, I'm replacing certificates (including intermediate ca) and keys.
I tried to use ipsec rereadall
but seems like it reread only /etc/ipsec.secrets
, /etc/ipsec.d/cacerts, ocspcerts, acerts and crls
and not /etc/ipsec.d/certs/
, so it didn't work.
sysemctl restart IKEV2
is not an option of course, as it breaks running tunnel connections.
Is there any way to do it without a user impact?
Edit: I'm using IKEV2 strongSwan