1 =pod 2 3 =begin comment 4 {- join("\n", @autowarntext) -} 5 6 =end comment 7 8 =head1 NAME 9 10 openssl-storeutl - STORE command 11 12 =head1 SYNOPSIS 13 14 B<openssl> B<storeutl> 15 [B<-help>] 16 [B<-out> I<file>] 17 [B<-noout>] 18 [B<-passin> I<arg>] 19 [B<-text> I<arg>] 20 [B<-r>] 21 [B<-certs>] 22 [B<-keys>] 23 [B<-crls>] 24 [B<-subject> I<arg>] 25 [B<-issuer> I<arg>] 26 [B<-serial> I<arg>] 27 [B<-alias> I<arg>] 28 [B<-fingerprint> I<arg>] 29 [B<-I<digest>>] 30 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_provider_synopsis -} 31 I<uri> 32 33 =head1 DESCRIPTION 34 35 This command can be used to display the contents (after 36 decryption as the case may be) fetched from the given URI. 37 38 =head1 OPTIONS 39 40 =over 4 41 42 =item B<-help> 43 44 Print out a usage message. 45 46 =item B<-out> I<filename> 47 48 This specifies the output file to write to. 49 Standard output is used if this option is not present. 50 The output file can be the same as the input, 51 which leads to replacing the file contents. 52 Note that file I/O is not atomic. The output file is truncated and then written. 53 54 =item B<-noout> 55 56 this option prevents output of the PEM data. 57 58 =item B<-passin> I<arg> 59 60 the key password source. For more information about the format of I<arg> 61 see L<openssl-passphrase-options(1)>. 62 63 =item B<-text> 64 65 Prints out the objects in text form, similarly to the B<-text> output from 66 L<openssl-x509(1)>, L<openssl-pkey(1)>, etc. 67 68 =item B<-r> 69 70 Fetch objects recursively when possible. 71 72 =item B<-certs> 73 74 =item B<-keys> 75 76 =item B<-crls> 77 78 Only select the certificates, keys or CRLs from the given URI. 79 However, if this URI would return a set of names (URIs), those are always 80 returned. 81 82 Note that all options must be given before the I<uri> argument. 83 84 Note I<-keys> selects exclusively private keys, there is no selector for public 85 keys only. 86 87 =item B<-subject> I<arg> 88 89 Search for an object having the subject name I<arg>. 90 91 The arg must be formatted as C</type0=value0/type1=value1/type2=...>. 92 Special characters may be escaped by C<\> (backslash), whitespace is retained. 93 Empty values are permitted but are ignored for the search. That is, 94 a search with an empty value will have the same effect as not specifying 95 the type at all. 96 Giving a single C</> will lead to an empty sequence of RDNs (a NULL-DN). 97 Multi-valued RDNs can be formed by placing a C<+> character instead of a C</> 98 between the AttributeValueAssertions (AVAs) that specify the members of the set. 99 100 Example: 101 102 C</DC=org/DC=OpenSSL/DC=users/UID=123456+CN=John Doe> 103 104 =item B<-issuer> I<arg> 105 106 =item B<-serial> I<arg> 107 108 Search for an object having the given issuer name and serial number. 109 These two options I<must> be used together. 110 The issuer arg must be formatted as C</type0=value0/type1=value1/type2=...>, 111 characters may be escaped by \ (backslash), no spaces are skipped. 112 The serial arg may be specified as a decimal value or a hex value if preceded 113 by C<0x>. 114 115 =item B<-alias> I<arg> 116 117 Search for an object having the given alias. 118 119 =item B<-fingerprint> I<arg> 120 121 Search for an object having the given fingerprint. 122 123 =item B<-I<digest>> 124 125 The digest that was used to compute the fingerprint given with B<-fingerprint>. 126 127 {- $OpenSSL::safe::opt_engine_item -} 128 129 {- $OpenSSL::safe::opt_provider_item -} 130 131 =back 132 133 =head1 SEE ALSO 134 135 L<openssl(1)> 136 137 =head1 HISTORY 138 139 This command was added in OpenSSL 1.1.1. 140 141 The B<-engine> option was deprecated in OpenSSL 3.0. 142 143 =head1 COPYRIGHT 144 145 Copyright 2016-2024 The OpenSSL Project Authors. All Rights Reserved. 146 147 Licensed under the Apache License 2.0 (the "License"). You may not use 148 this file except in compliance with the License. You can obtain a copy 149 in the file LICENSE in the source distribution or at 150 L<https://www.openssl.org/source/license.html>. 151 152 =cut 153