]> git.99rst.org Git - openwrt-packages.git/commit
strongswan: swanctl.init: remove invalid privkeys option
authorFlorian Eckert <redacted>
Tue, 4 Aug 2026 11:47:33 +0000 (13:47 +0200)
committerFlorian Eckert <redacted>
Tue, 4 Aug 2026 13:09:47 +0000 (15:09 +0200)
commit5c6578a8b37a68263aafa600a9d193d9ac8f27cc
tree027816629db61fa7f8ae2c6ab9173c59ee73327c
parent37cd414b63fe019952b5f1c057ad3018f50a5bd1
strongswan: swanctl.init: remove invalid privkeys option

The 'swanctl.conf' has no 'privkeys' option in
'connections.<conn>.local<suffix>'. The only local-round keys documented
for authentication are 'certs', 'cert<suffix>' and 'pubkeys'. Strongswan
does not let a connection reference a private key by name at all - swanctl
auto-selects the matching private key from '/etc/swanctl/private'
(or rsa/ecdsa/pkcs8) by comparing it against the certificate configured
via 'certs' when credentials are loaded.

Writing 'privkeys = $local_key' into the generated swanctl.conf is
therefore a no-op at best: the option is unknown to the parser and
gets silently dropped, so it never had any effect on which key was
used.

Drop the bogus assignment. The existing local_key validation making
sure the referenced file exists under '/etc/swanctl/private'. Since that's
still useful to catch misconfiguration early, and add a comment explaining
why nothing is written to swanctl.conf for it.

Signed-off-by: Florian Eckert <redacted>
net/strongswan/Makefile
net/strongswan/files/swanctl.init
git clone https://git.99rst.org/PROJECT