RPKI validator to support BGP routing
rpki-client utility queries the RPKI
repository system with a built-in HTTPS client and
openrsync(1) to fetch all X.509 certificates, manifests, and
revocation lists under a given Trust Anchor.
rpki-client subsequently validates each
Signed Object by constructing and verifying a
certification path for the certificate associated with the Object (including
checking relevant CRLs).
rpki-client produces lists
of the Validated ROA Payloads (VRPs),
Keys (BRKs), and Validated ASPA Payloads (VAPs) in
The options are as follows:
- Exclude the aspa-set in the OpenBGPD specific output file.
- Create output in the files bird1v4, bird1v6, and bird (for bird2) in the output directory which is suitable for the BIRD internet routing daemon.
- Tell the HTTP and rsync clients to use sourceaddr as the source address for connections, which is useful on machines with multiple interfaces.
- Create output in the file csv in the output directory as comma-separated values of the Autonomous System, the prefix in slash notation, the maximum prefix length, an abbreviation for the Trust Anchor the entry is derived from, and the moment the VRP will expire derived from the chain of X.509 certificates and CRLs in seconds since the Epoch, UTC.
- The directory where
rpki-clientwill store the cached repository data. Defaults to /var/cache/rpki-client.
- Use rsync_prog instead of
openrsync(1) to fetch repositories. It must accept the
--addressflags and connect with rsync-protocol locations.
- Decode the
validate the Signed Object in file
against the RPKI cache stored in cachedir and print
human-readable information about the object. If file
is an rsync:// URI, the corresponding file from the cache will be used.
This option implies
-n, and can be combined with
-jto emit a stream of Concatenated JSON.
- Create a shortlist and add fqdn to the shortlist.
rpki-clientonly connects to shortlisted hosts. The shortlist filter is enforced during processing of the Subject Information Access (SIA) extension in CA certificates, thus applies to both RSYNC and RRDP connections. This option can be used multiple times.
- Create output in the file json in the output
directory as JSON object. See
-cfor a description of the fields.
- Create output in the file metrics in the output directory in OpenMetrics format.
- Offline mode. Validate the contents of cachedir and write to outputdir without synchronizing via RRDP or RSYNC.
- Create output in the file openbgpd in the output
directory as bgpd(8) compatible input. If the
-joptions are not specified this is the default.
- Synchronize via RSYNC only.
- Synchronize via RRDP. If RRDP fails, RSYNC will be used. This is the
default. Mutually exclusive with
- Do not connect to hosts listed in the skiplist file.
Entries in the skiplist are newline separated
Qualified Domain Names (FQDNs). A
#’ indicates the beginning of a comment; characters up to the end of the line are not interpreted. The skip filter is enforced during processing of the Subject Information Access (SIA) extension in CA certificates, thus applies to both RSYNC and RRDP connections. By default load entries from /etc/rpki/skiplist.
- Terminate after timeout seconds of runtime, because normal practice will restart from cron(8). Disable by specifying 0. Defaults to 1 hour. Individual RSYNC/RRDP repositories are timed out after one fourth of timeout. All network synchronisation tasks are aborted after seven eights of timeout.
- For BIRD output generated with the
-Boption use table as roa table name instead of the default 'ROAS'.
- Specify a Trust Anchor Location (TAL) file to be used.
This option can be used multiple times to load multiple TALs. By default
rpki-clientwill load all TAL files in /etc/rpki. TAL are small files containing a public key and URL endpoint address.
- Show the version and exit.
- Increase verbosity. Specify once for synchronisation status, twice to
print the name of each file as it's processed. If
-fis given, specify once to print more information about the encapsulated X.509 certificate, twice to print the certificate in PEM format.
- The directory where
rpki-clientwill write the output files. Defaults to /var/db/rpki-client/.
rpki-client outputs validated
-o (OpenBGPD compatible) format.
rpki-client should be run hourly by
crontab(1) to uncomment the entry in root's crontab.
rpki-client utilizes the following
- URL of HTTP proxy to use.
- default TAL files used unless
-ttal is specified.
- default skiplist file, unless
-Sskiplist is specified.
- cached repository data.
- default roa-set output file.
All the top-level TAL are included, except the ARIN TAL which is not made available with terms compatible with open source. That public key is treated as a propriety object in a lengthy legal agreement regarding ARIN service restrictions.
rpki-client utility exits 0 on
success, and >0 if an error occurs.
Charles Lynn, Stephen Kent, and Karen Seo, X.509 Extensions for IP Addresses and AS Identifiers, IETF, RFC 3779, https://www.rfc-editor.org/rfc/rfc3779, Jun, 2004.
David Cooper, Stefan Santesson, Stephen Farrell, Sharon Boeyen, Russell Housley, and Tim Polk, Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile, IETF, RFC 5280, https://www.rfc-editor.org/rfc/rfc5280, May, 2008.
Russell Housley, Cryptographic Message Syntax (CMS), IETF, RFC 5652, https://www.rfc-editor.org/rfc/rfc5652, Sep, 2009.
Samuel Weiler, Dave Ward, and Russ Housley, The rsync URI Scheme, IETF, RFC 5781, https://www.rfc-editor.org/rfc/rfc5781, Feb, 2010.
Matt Lepinski and Stephen Kent, An Infrastructure to Support Secure Internet Routing, IETF, RFC 6480, https://www.rfc-editor.org/rfc/rfc6480, Feb, 2012.
Geoff Huston, Robert Loomans, and George Michaelson, A Profile for Resource Certificate Repository Structure, IETF, RFC 6481, https://www.rfc-editor.org/rfc/rfc6481, Feb, 2012.
Geoff Huston, The Profile for Algorithms and Key Sizes for Use in the Resource Public Key Infrastructure (RPKI), IETF, RFC 6485, https://www.rfc-editor.org/rfc/rfc6485, Feb, 2012.
Geoff Huston, George Michaelson, and Robert Loomans, A Profile for X.509 PKIX Resource Certificates, IETF, RFC 6487, https://www.rfc-editor.org/rfc/rfc6487, Feb, 2012.
Matt Lepinski, Andrew Chi, and Stephen Kent, Signed Object Template for the Resource Public Key Infrastructure (RPKI), IETF, RFC 6488, https://www.rfc-editor.org/rfc/rfc6488, Feb, 2012.
Randy Bush, The Resource Public Key Infrastructure (RPKI) Ghostbusters Record, IETF, RFC 6493, https://www.rfc-editor.org/rfc/rfc6493, Feb, 2012.
Andrew Lee Newton and Geoff Huston, Policy Qualifiers in Resource Public Key Infrastructure (RPKI) Certificates, IETF, RFC 7318, https://www.rfc-editor.org/rfc/rfc6493, Jul, 2014.
Tim Bruijnzeels, Oleg Muravskiy, Bryan Weber, and Rob Austein, The RPKI Repository Delta Protocol (RRDP), IETF, RFC 8182, https://www.rfc-editor.org/rfc/rfc8182, Jul, 2017.
Mark Reynolds, Sean Turner, and Stephen Kent, A Profile for BGPsec Router Certificates, Certificate Revocation Lists, and Certification Requests, IETF, RFC 8209, https://www.rfc-editor.org/rfc/rfc8209, Sep, 2017.
Geoff Huston, Samuel Weiler, George Michaelson, Stephen Kent, and Tim Bruijnzeels, Resource Public Key Infrastructure (RPKI) Trust Anchor Locator, IETF, RFC 8630, https://www.rfc-editor.org/rfc/rfc8630, Aug, 2019.
Randy Bush, Massimo Candela, Warren Kumari, and Russ Housley, Finding and Using Geofeed Data, IETF, RFC 9092, https://www.rfc-editor.org/rfc/rfc9092, Jul, 2021.
Rob Austein, Geoff Huston, Stephen Kent, and Matt Lepinski, Manifests for the Resource Public Key Infrastructure (RPKI), IETF, RFC 9286, https://www.rfc-editor.org/rfc/rfc9286, Jun, 2022.
Carlos Martinez, George Michaelson, Tom Harrison, Tim Bruijnzeels, and Rob Austein, RPKI Signed Object for Trust Anchor Key, IETF, https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-signed-tal, Oct, 2022.
Job Snijders, Tom Harrison, and Ben Maddison, A Profile for RPKI Signed Checklists (RSCs), IETF, RFC 9323, https://www.rfc-editor.org/rfc/rfc9323, Nov, 2022.
Job Snijders, Matt Lepinski, Derrick Kong, and Stephen Kent, A Profile for Route Origin Authorizations (ROAs), IETF, https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-rfc6482bis, Nov, 2022.
Alexander Azimov, Eugene Uskov, Randy Bush, Job Snijders, Russ Housley, and Ben Maddison, A Profile for Autonomous System Provider Authorization (ASPA), IETF, https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-aspa-profile, Jan, 2023.
rpki-client first appeared in
Kristaps Dzonsons <email@example.com>, Claudio Jeker <firstname.lastname@example.org>, Theo Buehler <email@example.com>, and Job Snijders <firstname.lastname@example.org>.