Debian Codegraph @

bin/csaf-downloader

raw
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5 use utf8;
6
7 use App::CSAF::Downloader;
8
9 exit App::CSAF::Downloader->run(@ARGV) unless caller();
10
11 1;
12
13 __END__
14 =encoding utf-8
15
16 =head1 NAME
17
18 csaf-downloader - CSAF Downloader
19
20 =head1 SYNOPSIS
21
22 csaf-downloader --url URL
23 csaf-downloader --config FILE
24 csaf-downloader [--help|--man|--version]
25
26 Options:
27 -u, --url=URL "provider-metadata.json", "index.txt" or ROLIE feed URL
28 -d, --directory=PATH Output directory
29 -k, --insecure Skip TLS verification
30 --parallel-downloads=NUM Number of parallel downloads (default: 10)
31
32 --validate=[type] Validate CSAF document (type: schema, mandatory, optional, informative)
33 --signature-check Enable GPG signature check
34 --integrity-check Enable SHA-(256|512) integrity check
35
36 --include=REGEXP Include file
37 --exclude=REGEXP Exclude file
38
39 --after=DATE Download CSAF documents more recent than a specific date
40 --before=DATE Download CSAF documents older than a specific date
41
42 -v, --verbose Verbose
43
44 --config=FILE Configuration file
45
46 --help Brief help message
47 --man Full documentation
48 --version Print version
49
50 =head1 DESCRIPTION
51
52 C<csaf-downloader> CSAF Downloader
53
54 =head1 EXAMPLES
55
56 Download using C<index.txt> file
57
58 $ csaf-downloader -u https://security.acme.tld/advisories/csaf/index.txt
59
60 Download using C<provider-metadata.json> with ROLIE feed document:
61
62 $ csaf-downloader -u https://psirt.domain.tld/advisories/csaf/provider-metadata.json
63
64 Download using ROLIE feed document:
65
66 $ csaf-downloader -u https://psirt.domain.tld/advisories/csaf/feed-tlp-white.json
67
68 Download CSAF documents more recent than a specific date:
69
70 $ csaf-downloader -u https://psirt.domain.tld/advisories/csaf/feed-tlp-white.json --after 2024-10-01
71
72 =head1 SEE ALSO
73
74 L<csaf-rolie>
75
76 =head1 AUTHOR
77
78 L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt>
79
80 =head1 COPYRIGHT AND LICENSE
81
82 Copyright © 2023-2025 L<Giuseppe Di Terlizzi|https://metacpan.org/author/gdt>
83
84 You may use and distribute this module according to the same terms
85 that Perl is distributed under.