Project

General

Profile

ipsec.conf: ca Reference » History » Version 18

Tobias Brunner, 04.09.2024 15:46

1 11 Tobias Brunner
{{title(ipsec.conf: ca Reference)}}
2 11 Tobias Brunner
3 18 Tobias Brunner
{{swanctl}}
4 18 Tobias Brunner
5 11 Tobias Brunner
h1. ipsec.conf: ca <name>
6 11 Tobias Brunner
7 6 Tobias Brunner
h1. ca <name>
8 6 Tobias Brunner
9 15 Tobias Brunner
*ca* sections are *optional sections* that can be used to assign special parameters to a Certification Authority (CA).
10 1 Martin Willi
11 14 Tobias Brunner
Because the daemon automatically imports CA certificates from [[IpsecDirectoryCacerts|/etc/ipsec.d/cacerts]], there is no need to explicitly
12 14 Tobias Brunner
add them with a CA section, unless you want to assign special parameters (like a CRL) to a CA.
13 10 Tobias Brunner
14 1 Martin Willi
h2. Parameters
15 1 Martin Willi
16 14 Tobias Brunner
_also = <name>_
17 8 Andreas Steffen
18 17 Tobias Brunner
p((. includes ca section _<name>_.  Some aspects of this changed with version:5.2.0 (refer to [[IpsecConf#Reusing-Existing-Parameters]] for details).
19 7 Tobias Brunner
20 1 Martin Willi
_auto = *ignore* | add_
21 7 Tobias Brunner
22 8 Andreas Steffen
_cacert = <path>_
23 1 Martin Willi
24 10 Tobias Brunner
p((. defines a path to the CA certificate either relative to [[IpsecDirectoryCacerts|/etc/ipsec.d/cacerts]] or as an absolute path.
25 1 Martin Willi
26 16 Tobias Brunner
p((. Since [[5.0.2]] a value of the form _%smartcard[<slot nr>[@<module>]]:<keyid>_ defines a specific CA certificate
27 16 Tobias Brunner
     to load from a PKCS#11 backend for this CA. See [[PinSecret|ipsec.secrets]] for details about smartcard definitions
28 16 Tobias Brunner
29 7 Tobias Brunner
_crluri = <uri>_
30 8 Andreas Steffen
31 7 Tobias Brunner
p((. defines a CRL distribution point (ldap, http, or file URI).
32 1 Martin Willi
33 9 Tobias Brunner
_crluri1_
34 8 Andreas Steffen
35 7 Tobias Brunner
p((. synonym for _crluri_.
36 4 Martin Willi
37 8 Andreas Steffen
_crluri2 = <uri>_
38 1 Martin Willi
39 12 Tobias Brunner
p((. defines an alternative CRL distribution point (ldap, http, or file URI).
40 3 Martin Willi
41 7 Tobias Brunner
_ocspuri = <uri>_
42 8 Andreas Steffen
43 7 Tobias Brunner
p((. defines an OCSP URI.
44 3 Martin Willi
45 9 Tobias Brunner
_ocspuri1_
46 8 Andreas Steffen
47 7 Tobias Brunner
p((. synonym for _ocspuri_.
48 7 Tobias Brunner
49 1 Martin Willi
_ocspuri2 = <uri>_
50 8 Andreas Steffen
51 12 Tobias Brunner
p((. defines an alternative OCSP URI. Only used by the charon daemon (since 5.0.0 also for IKEv1).
52 1 Martin Willi
53 1 Martin Willi
_certuribase = <uri>_
54 1 Martin Willi
55 1 Martin Willi
p((. defines the base URI for the [[HashAndUrl|Hash and URL]] feature supported by IKEv2.
56 1 Martin Willi
     Instead of exchanging complete certificates, IKEv2 allows to send an URI
57 1 Martin Willi
     that resolves to the DER encoded certificate. The certificate URIs are built
58 5 Tobias Brunner
     by appending the SHA1 hash of the DER encoded certificates to this base URI.
59 14 Tobias Brunner
60 14 Tobias Brunner
h2. Old options (before 5.0.0)
61 14 Tobias Brunner
62 14 Tobias Brunner
_ldaphost = <hostname>_
63 14 Tobias Brunner
64 14 Tobias Brunner
p((. defines an ldap host. Only used by the IKEv1 daemon pluto.