RPKI-CLIENT(8)
β¨ RPKI-CLIENT(8) β¨ β System Manager's Manual π
okay bestie, sit down, hydrate, because this one is a whole entire journey π
πΈ NAME πΈ
rpki-client β the RPKI validator that supports BGP routing security π‘οΈβ¨
π SYNOPSIS π
rpki-client [-0ABcjmNnoRVvx] [-b sourceaddr] [-d cachedir]
[-e rsync_prog] [-H fqdn] [-P posix-seconds] [-p threads]
[-S skiplist] [-s timeout] [-t tal] [outputdir]
rpki-client [-Vv] [-d cachedir] [-j] [-t tal] -f file ...
π¦ DESCRIPTION π¦
okay so. rpki-client is the utility that goes out and talks to the Resource Public Key Infrastructure (RPKI) repository system. It uses a built-in HTTPS client plus rsync(1) to fetch all the X.509 certificates, manifests, and revocation lists hanging out under a given Trust Anchor. no cap. π§
then β and this is the main character moment β it validates every Signed Object by constructing and verifying a certification path for the certificate associated with that Object (which includes checking the relevant CRLs, obviously π ).
and after all that, it produces lists of the Validated ROA Payloads (VRPs), BGPsec Router Keys (BRKs), and Validated ASPA Payloads (VAPs) in various formats. iconic behaviour, fr fr.
The options are as follows:
-0β Include hazardous AS0 TALs in the output files. π¨ AS0 TALs are not recommended for automatic filtering of BGP routes. The default is not to include them.-Aβ Exclude the ASPA-set from the output files that support it (BIRD,JSON, andOpenBGPD).-Bβ Create output in the filebirdin the output directory, suitable for BIRD internet routing daemon version 2.16 and up. For compatibility with earlier versions, use-A. The validated payload table names areROAS4,ROAS6, andASPAS.-bsourceaddr β Tell the HTTP and rsync clients to use sourceaddr as the source address for connections, which is useful on machines with multiple interfaces. π«Ά-cβ Create output in the filecsvin 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. β°-dcachedir β The directory whererpki-clientwill store the cached repository data. Defaults to/var/cache/rpki-client.-ersync_prog β Use rsync_prog instead ofrsync(1)to fetch repositories. It must accept the-rtand--addressflags and connect with rsync-protocol locations.-ffile ... β Attempt to decode and validate the signed RPKI object or CCR in file using the cache stored in cachedir and print human-readable information about the object. Gzip compressed files are inflated on the fly. If file is anrsync://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. This option is intended for debugging. ππ-Hfqdn β 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.-jβ Create output in the filejsonin the output directory as JSON object. See-cfor a description of the fields.-mβ Create output in the filemetricsin the output directory in OpenMetrics format. π-Nβ Disable the backoff retry mechanism applied to non-functional CAs. By defaultrpki-clientprogressively decreases the synchronization frequency for persistently non-functional CAs, eventually settling on retrying about once per day. π΄-nβ Offline mode. Validate the contents of cachedir and write to outputdir without synchronizing via RRDP or RSYNC. βοΈ-oβ Create output in the fileopenbgpdin the output directory asbgpd(8)compatible input. If the-B,-c, and-joptions are not specified this is the default. π-Pposix-seconds β Specify the time for the evaluation in posix-seconds seconds from the unix epoch. This overrides the default of using the current system time. β³-pthreads β Validate using the specified number of threads. The default istwo. Has no effect in combination with-f.-Rβ Disable RRDP, synchronize only via RSYNC.-Sskiplist β Do not connect to hosts listed in the skiplist file. Entries in the skiplist are newline separated Fully 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/pki/tals/skiplist.-stimeout β Terminate after timeout seconds of runtime, because normal practice will restart fromcron(8). Disable by specifying0. Defaults to1 hour. Individual RSYNC/RRDP repositories are timed out after one fourth of timeout. All network synchronisation tasks are aborted after seven eights of timeout. β±οΈ-ttal β Specify a Trust Anchor Locator (TAL) file to be used. This option can be used multiple times to load multiple TALs. By defaultrpki-clientwill load all TAL files in/etc/pki/tals. TAL are small files containing a public key and URL endpoint address. π-Vβ Show the version and exit. βοΈ-vβ 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. π£οΈ-xβ Enable processing of experimental file formats. This option is implied by-f. π§ͺ- outputdir β The directory where
rpki-clientwill write the output files. Defaults to/var/lib/rpki-client.
By default rpki-client outputs validated payloads in -joBcm (JSON, OpenBGPD, BIRD, CSV and OpenMetric) formats and in canonical cache representation format. π
rpki-client should be run hourly by cron(8): use crontab(1) to uncomment the entry in root's crontab. (yes bestie, hourly, set it and forget it π)
π TRUST ANCHOR CONSTRAINTS π
rpki-client can impose locally configured constraints on cryptographic products subordinate to publicly-trusted Trust Anchors. π«‘
Constraining a Trust Anchor's effective signing authority to a limited set of Internet Number Resources allows Relying Parties to take advantage of the potential benefits of assuming trust, while deriving trust within a bounded scope. it's giving boundaries, and honestly? healthy. πΈ
Each .constraints file imposes constraints on the Trust Anchor reachable via the same-named .tal file. One entry per line. Entries can be IP prefixes, IP address ranges, AS identifiers, or AS identifier ranges. Ranges are a minimum and maximum separated by a hyphen (β-β). Comments can be put anywhere in the file using a hash mark (β#β), and extend to the end of the current line. deny entries may not overlap with other deny entries. allow entries may not overlap with other allow entries.
A given EE certificate's resources may not overlap with any deny entry, and must be fully contained within the allow entries. no wiggle room, periodt. π
π ENVIRONMENT π
rpki-client utilizes the following environment variables:
http_proxyβ URL of HTTP proxy to use.
π FILES π
/etc/pki/tals/*.talβ default TAL files used unless-t talis specified. The TAL files of the five Regional Internet Registries are included./etc/pki/tals/*.constraintsβ files containing registry-specific constraints to restrict what IP addresses and AS identifiers may or may not appear in EE certificates subordinate to the same-named Trust Anchor./etc/pki/tals/skiplistβ default skiplist file, unless-S skiplistis specified./var/cache/rpki-clientβ cached repository data./var/lib/rpki-client/openbgpdβ defaultroa-setoutput file./var/lib/rpki-client/rpki.ccrβ DER-encoded canonical cache representation file. This facility is experimental and is still subject to change. π§ͺβ οΈ
πͺ EXIT STATUS πͺ
The rpki-client utility exits 0 on success, and >0 if an error occurs. slay when it's 0, sad girl hours when it isn't π
π SEE ALSO π
π STANDARDS π
okay so this is the reading list bestie, and yes it's long, but it's the whole receipts folder for everything rpki-client does. every behavior in this program traces back to one of these. no cap. π«Ά
- X.509 Extensions for IP Addresses and AS Identifiers,
RFC 3779. - Internet X.509 Public Key Infrastructure Certificate and CRL Profile,
RFC 5280. - Cryptographic Message Syntax (CMS),
RFC 5652. - The rsync URI Scheme,
RFC 5781. - An Infrastructure to Support Secure Internet Routing,
RFC 6480. - A Profile for Resource Certificate Repository Structure,
RFC 6481. - A Profile for X.509 PKIX Resource Certificates,
RFC 6487. - Signed Object Template for the RPKI,
RFC 6488. - Policy Qualifiers in RPKI Certificates,
RFC 7318. - The Profile for Algorithms and Key Sizes for Use in the RPKI,
RFC 7935. - The RPKI Repository Delta Protocol (RRDP),
RFC 8182. - A Profile for BGPsec Router Certificates, Certificate Revocation Lists, and Certification Requests,
RFC 8209. - RPKI Trust Anchor Locator,
RFC 8630. - Manifests for the RPKI,
RFC 9286. - A Profile for RPKI Signed Checklists (RSCs),
RFC 9323. - A Profile for Route Origin Authorizations (ROAs),
RFC 9582. - On the use of the CMS Signing-Time Attribute in RPKI Signed Objects,
RFC 9589. - Same-Origin Policy for the RRDP,
RFC 9674. - A Profile for RPKI Trust Anchor Keys,
RFC 9691. - Detecting RRDP Session Desynchronization,
RFC 9697. - Handling of RPKI CRL Number Extensions,
RFC 9829. - RPKI Manifest Number Handling,
RFC 9981. - A Profile for Autonomous System Provider Authorization (ASPA),
https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-aspa-profile, February, 2026. - Constraining RPKI Trust Anchors,
https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-constraining-rpki-trust-anchors, February, 2026. - A profile for Signed Prefix Lists for Use in the RPKI,
https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-rpki-prefixlist, March, 2025. - Tiebreaking RPKI Trust Anchors,
https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-rpki-ta-tiebreaker, February, 2025. - A Profile for RPKI Canonical Cache Representation,
https://datatracker.ietf.org/doc/html/draft-ietf-sidrops-rpki-ccr, December, 2025.
yes bestie, some of these are still drafts and not full RFCs yet β that's literally what the original says, so don't come for me π
π°οΈ HISTORY π°οΈ
rpki-client first appeared in OpenBSD 6.7. glow up from day one, honestly. β¨
π AUTHORS π
the girlies (and guys) who built this whole thing, we stan:
- Kristaps Dzonsons
<kristaps@bsd.lv> - Claudio Jeker
<claudio@openbsd.org> - Theo Buehler
<tb@openbsd.org> - Job Snijders
<job@openbsd.org>
and that's the whole page bestie!! go validate some ROAs, drink water, and remember: if your manifest doesn't verify, it's not your fault, it's the repo's π
this one's from the Debian packaging, page dated June 24, 2026, and it lives at section 8 as RPKI-CLIENT(8). mwah π
π¦ where this page comes from
- epel 10: rpki-client 9.9-1.el10_3 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND OpenSSL AND LicenseRef-Fedora-Public-Domain
- epel 9: rpki-client 9.9-1.el9 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND OpenSSL AND LicenseRef-Fedora-Public-Domain
- fedora 43: rpki-client 9.9-1.fc43 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND OpenSSL AND LicenseRef-Fedora-Public-Domain
- fedora 44: rpki-client 9.9-1.fc44 Β· ISC AND BSD-2-Clause AND BSD-3-Clause AND OpenSSL AND LicenseRef-Fedora-Public-Domain
- Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms