Provided by: rpki-client_8.2-2build1_amd64
NAME
rpki-client — RPKI validator to support BGP routing security
SYNOPSIS
rpki-client [-BcjnoRrVv] [-b sourceaddr] [-d cachedir] [-e rsync_prog] [-H fqdn] [-S skiplist] [-s timeout] [-T table] [-t tal] [outputdir] rpki-client [-Vv] [-d cachedir] [-j] [-t tal] -f file ...
DESCRIPTION
The rpki-client utility queries the RPKI repository system with a built-in HTTPS client and rsync(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), BGPsec Router Keys (BRKs), and Validated ASPA Payloads (VAPs) in various formats. The options are as follows: -B Create output in the files bird1v4, bird1v6, and bird (for bird2) in the output directory which is suitable for the BIRD internet routing daemon. -b sourceaddr 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 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. -d cachedir The directory where rpki-client will store the cached repository data. Defaults to /var/cache/rpki-client. -e rsync_prog Use rsync_prog instead of rsync(1) to fetch repositories. It must accept the -rt and --address flags and connect with rsync-protocol locations. -f file ... Decode the TAL or 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 -j to emit a stream of Concatenated JSON. -H fqdn Create a shortlist and add fqdn to the shortlist. rpki-client only 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 file json in the output directory as JSON object. See -c for a description of the fields. -n Offline mode. Validate the contents of cachedir and write to outputdir without synchronizing via RRDP or RSYNC. -o Create output in the file openbgpd in the output directory as bgpd(8) compatible input. If the -B, -c, and -j options are not specified this is the default. -R Synchronize via RSYNC only. -r Synchronize via RRDP. If RRDP fails, RSYNC will be used. This is the default. Mutually exclusive with -n. -S skiplist 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/rpki/skiplist. -s timeout Terminate after timeout seconds of runtime, because normal practice will restart from the systemd.timer(5) unit rpki.timer. 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. -T table For BIRD output generated with the -B option use table as roa table name instead of the default 'ROAS'. -t tal Specify a Trust Anchor Location (TAL) file to be used. This option can be used multiple times to load multiple TALs. By default rpki-client will load all TAL files in /etc/tals. -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 -f is given, specify once to print more information about the encapsulated X.509 certificate, twice to print the certificate in PEM format. outputdir The directory where rpki-client will write the output files. Defaults to /var/lib/rpki-client. By default rpki-client produces a list of unique VRPs in -joBc JSON, OpenBGPD, BIRD and CSV compatible output. rpki-client by default is run hourly by the systemd.timer(5) unit rpki.timer.
ENVIRONMENT
rpki-client utilizes the following environment variables: http_proxy URL of HTTP proxy to use.
FILES
/etc/tals/*.tal default TAL files used unless -t tal is specified. /etc/tals/skiplist default skiplist file, unless -S skiplist is specified. /var/cache/rpki-client cached repository data. /var/lib/rpki-client/openbgpd default roa-set output file.
EXIT STATUS
The rpki-client utility exits 0 on success, and >0 if an error occurs.
SEE ALSO
rsync(1), bgpd.conf(5)
STANDARDS
The following standards are used or referenced in rpki-client: RFC 3370 Cryptographic Message Syntax (CMS) Algorithms. RFC 3779 X.509 Extensions for IP Addresses and AS Identifiers. RFC 4291 IP Version 6 Addressing Architecture. RFC 4631 Classless Inter-domain Routing (CIDR): The Internet Address Assignment and Aggregation Plan. RFC 5280 Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile. RFC 5652 Cryptographic Message Syntax (CMS). RFC 5781 The rsync URI Scheme. RFC 5952 A Recommendation for IPv6 Address Text Representation. RFC 6480 An Infrastructure to Support Secure Internet Routing. RFC 6482, draft-ietf-sidrops-rfc6482bis-01 A Profile for Route Origin Authorizations (ROAs). RFC 6485 The Profile for Algorithms and Key Sizes for Use in the Resource Public Key Infrastructure (RPKI). RFC 6486 Manifests for the Resource Public Key Infrastructure (RPKI). RFC 6487 A Profile for X.509 PKIX Resource Certificates. RFC 6488 Signed Object Template for the Resource Public Key Infrastructure (RPKI). RFC 6493 The Resource Public Key Infrastructure (RPKI) Ghostbusters Record. RFC 7318 Policy Qualifiers in Resource Public Key Infrastructure (RPKI) Certificates. RFC 8182 The RPKI Repository Delta Protocol (RRDP). RFC 8209 A Profile for BGPsec Router Certificates, Certificate Revocation Lists, and Certification Requests. RFC 8630 Resource Public Key Infrastructure (RPKI) Trust Anchor Locator. RFC 9092 Finding and Using Geofeed Data. RFC 9323 A Profile for RPKI Signed Checklists (RSCs). draft-ietf-sidrops-aspa-profile-10 A Profile for Autonomous System Provider Authorization (ASPA). draft-ietf-sidrops-signed-tal-12 RPKI Signed Object for Trust Anchor Key.
HISTORY
rpki-client first appeared in OpenBSD 6.7.
AUTHORS
The rpki-client utility was written by Kristaps Dzonsons <kristaps@bsd.lv>.