Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to setup Strongswan/Libreswan with PKI authentication. Now I have searched and found only how to configure specific accepted client certificates like here:

What I would like to do is have something like rightCA=companyCA.pem That would make Strongswan accept any client certificate that can build trust up to the CA.

EDIT: I would also like to have a means of authorizing the authenticated clients(eg. against LDAP)

share|improve this question
up vote 0 down vote accepted

You can do exactly that with the rightca option. Just configure the distinguished name of the CA for which you want to accept client certificates.

You actually don't even have to set that option as strongSwan accepts all client certificates for which it can successfully verify the trust chain to a trusted CA certificate (i.e. the option is mainly to restrict clients to a specific CA if there are multiple trusted CAs).

share|improve this answer
Thank you for the answer. Can you add anything on the edited question? – MemCtrl Apr 2 '14 at 10:03
There is no LDAP plugin for strongSwan. But the eap-radius plugin might be an option. Depends on your needs. – ecdsa Apr 2 '14 at 13:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.