Discussion:
[strongSwan-dev] Need solution for strongSwan VPN Tunnel specific CA in the configuration for the Authentication
Kalpesh Panchal
2017-11-02 18:21:45 UTC
Permalink
Hi All,

We are using multiple VPN tunnels on the same system. All CAs for Tunnel A
& B are in */etc/ipsec.d/cacerts/*

For that
*How can we provide the Tunnel specific CA list in configuration for the
Authentication ?*
*means*
*Tunnel A must be established only if received client certificate is signed
by any CA of Tunnel A *
*and *
*Tunnel B must be established only if received client certificate is signed
by any CA of Tunnel B.*

Here we can not use *rightca *option as we may have up to 20 different CAs
for each Tunnel.

Currently we are facing below issue:

*Tunnel A is established even if received client certificate is signed by
any CA of Tunnel B. And vice versa.*

Let me know if anything required from my side.

Appreciating the quick response in advance.

Thanks,
Kalpesh Panchal

On Thu, Nov 2, 2017 at 12:09 PM, Kalpesh Panchal <
Hi All,
We are using multiple VPN tunnels on the same system. All CAs for Tunnel A
& B are in */etc/ipsec.d/cacerts/*
For that
*How can we provide the Tunnel specific CA list in configuration for the
Authentication ?*
*means*
*Tunnel A must be established only if received client certificate is
signed by any CA of Tunnel A *
*and *
*Tunnel B must be established only if received client certificate is
signed by any CA of Tunnel B.*
Here we can not use *rightca *option as we may have up to 20 different
CAs for each Tunnel.
*Tunnel A is established even if received client certificate is signed by
any CA of Tunnel B. And vice versa.*
Let me know if anything required from my side.
Appreciating the quick response in advance.
Thanks,
Kalpesh Panchal
Tobias Brunner
2017-11-03 08:47:41 UTC
Permalink
Hi Kalpesh,
Here we can not use rightca option as we may have up to 20 different
CAs for each Tunnel.
Please consider switching to swanctl.conf [1] or vici [2] instead of
using ipsec.conf-based configs. Then you can provide a list of accepted
CA certificates for each connection.

Regards,
Tobias

[1] https://wiki.strongswan.org/projects/strongswan/wiki/Swanctlconf
[2] https://wiki.strongswan.org/projects/strongswan/wiki/Vici
Kalpesh Panchal
2017-11-03 16:20:06 UTC
Permalink
Hi Tobias,

Thanks for your quick response.
We will work your suggestion & let you know if we face any issue.

Regards,
Kalpesh Panchal
Post by Tobias Brunner
Hi Kalpesh,
Here we can not use rightca option as we may have up to 20 different
CAs for each Tunnel.
Please consider switching to swanctl.conf [1] or vici [2] instead of
using ipsec.conf-based configs. Then you can provide a list of accepted
CA certificates for each connection.
Regards,
Tobias
[1] https://wiki.strongswan.org/projects/strongswan/wiki/Swanctlconf
[2] https://wiki.strongswan.org/projects/strongswan/wiki/Vici
Loading...