1b0d17251Schristos=pod 2b0d17251Schristos{- OpenSSL::safe::output_do_not_edit_headers(); -} 3b0d17251Schristos 4b0d17251Schristos=head1 NAME 5b0d17251Schristos 6b0d17251Schristosopenssl-pkeyutl - public key algorithm command 7b0d17251Schristos 8b0d17251Schristos=head1 SYNOPSIS 9b0d17251Schristos 10b0d17251SchristosB<openssl> B<pkeyutl> 11b0d17251Schristos[B<-help>] 12b0d17251Schristos[B<-in> I<file>] 13b0d17251Schristos[B<-rawin>] 14b0d17251Schristos[B<-digest> I<algorithm>] 15b0d17251Schristos[B<-out> I<file>] 16b0d17251Schristos[B<-sigfile> I<file>] 17b0d17251Schristos[B<-inkey> I<filename>|I<uri>] 18b0d17251Schristos[B<-keyform> B<DER>|B<PEM>|B<P12>|B<ENGINE>] 19b0d17251Schristos[B<-passin> I<arg>] 20b0d17251Schristos[B<-peerkey> I<file>] 21b0d17251Schristos[B<-peerform> B<DER>|B<PEM>|B<P12>|B<ENGINE>] 22b0d17251Schristos[B<-pubin>] 23b0d17251Schristos[B<-certin>] 24b0d17251Schristos[B<-rev>] 25b0d17251Schristos[B<-sign>] 26b0d17251Schristos[B<-verify>] 27b0d17251Schristos[B<-verifyrecover>] 28b0d17251Schristos[B<-encrypt>] 29b0d17251Schristos[B<-decrypt>] 30b0d17251Schristos[B<-derive>] 31b0d17251Schristos[B<-kdf> I<algorithm>] 32b0d17251Schristos[B<-kdflen> I<length>] 33b0d17251Schristos[B<-pkeyopt> I<opt>:I<value>] 34b0d17251Schristos[B<-pkeyopt_passin> I<opt>[:I<passarg>]] 35b0d17251Schristos[B<-hexdump>] 36b0d17251Schristos[B<-asn1parse>] 37b0d17251Schristos{- $OpenSSL::safe::opt_engine_synopsis -}[B<-engine_impl>] 38b0d17251Schristos{- $OpenSSL::safe::opt_r_synopsis -} 39b0d17251Schristos{- $OpenSSL::safe::opt_provider_synopsis -} 40b0d17251Schristos{- $OpenSSL::safe::opt_config_synopsis -} 41b0d17251Schristos 42b0d17251Schristos=head1 DESCRIPTION 43b0d17251Schristos 44b0d17251SchristosThis command can be used to perform low-level public key 45b0d17251Schristosoperations using any supported algorithm. 46b0d17251Schristos 47b0d17251Schristos=head1 OPTIONS 48b0d17251Schristos 49b0d17251Schristos=over 4 50b0d17251Schristos 51b0d17251Schristos=item B<-help> 52b0d17251Schristos 53b0d17251SchristosPrint out a usage message. 54b0d17251Schristos 55b0d17251Schristos=item B<-in> I<filename> 56b0d17251Schristos 57b0d17251SchristosThis specifies the input filename to read data from or standard input 58b0d17251Schristosif this option is not specified. 59b0d17251Schristos 60b0d17251Schristos=item B<-rawin> 61b0d17251Schristos 62b0d17251SchristosThis indicates that the input data is raw data, which is not hashed by any 63b0d17251Schristosmessage digest algorithm. The user can specify a digest algorithm by using 64b0d17251Schristosthe B<-digest> option. This option can only be used with B<-sign> and 65b0d17251SchristosB<-verify> and must be used with the Ed25519 and Ed448 algorithms. 66b0d17251Schristos 67b0d17251Schristos=item B<-digest> I<algorithm> 68b0d17251Schristos 69b0d17251SchristosThis specifies the digest algorithm which is used to hash the input data before 70b0d17251Schristossigning or verifying it with the input key. This option could be omitted if the 71b0d17251Schristossignature algorithm does not require one (for instance, EdDSA). If this option 72b0d17251Schristosis omitted but the signature algorithm requires one, a default value will be 73b0d17251Schristosused. For signature algorithms like RSA, DSA and ECDSA, SHA-256 will be the 74b0d17251Schristosdefault digest algorithm. For SM2, it will be SM3. If this option is present, 75b0d17251Schristosthen the B<-rawin> option must be also specified. 76b0d17251Schristos 77b0d17251Schristos=item B<-out> I<filename> 78b0d17251Schristos 79b0d17251SchristosSpecifies the output filename to write to or standard output by 80b0d17251Schristosdefault. 81b0d17251Schristos 82b0d17251Schristos=item B<-sigfile> I<file> 83b0d17251Schristos 84b0d17251SchristosSignature file, required for B<-verify> operations only 85b0d17251Schristos 86b0d17251Schristos=item B<-inkey> I<filename>|I<uri> 87b0d17251Schristos 88b0d17251SchristosThe input key, by default it should be a private key. 89b0d17251Schristos 90b0d17251Schristos=item B<-keyform> B<DER>|B<PEM>|B<P12>|B<ENGINE> 91b0d17251Schristos 92b0d17251SchristosThe key format; unspecified by default. 93b0d17251SchristosSee L<openssl-format-options(1)> for details. 94b0d17251Schristos 95b0d17251Schristos=item B<-passin> I<arg> 96b0d17251Schristos 97b0d17251SchristosThe input key password source. For more information about the format of I<arg> 98b0d17251Schristossee L<openssl-passphrase-options(1)>. 99b0d17251Schristos 100b0d17251Schristos=item B<-peerkey> I<file> 101b0d17251Schristos 102b0d17251SchristosThe peer key file, used by key derivation (agreement) operations. 103b0d17251Schristos 104b0d17251Schristos=item B<-peerform> B<DER>|B<PEM>|B<P12>|B<ENGINE> 105b0d17251Schristos 106b0d17251SchristosThe peer key format; unspecified by default. 107b0d17251SchristosSee L<openssl-format-options(1)> for details. 108b0d17251Schristos 109b0d17251Schristos=item B<-pubin> 110b0d17251Schristos 111b0d17251SchristosThe input file is a public key. 112b0d17251Schristos 113b0d17251Schristos=item B<-certin> 114b0d17251Schristos 115b0d17251SchristosThe input is a certificate containing a public key. 116b0d17251Schristos 117b0d17251Schristos=item B<-rev> 118b0d17251Schristos 119b0d17251SchristosReverse the order of the input buffer. This is useful for some libraries 120b0d17251Schristos(such as CryptoAPI) which represent the buffer in little endian format. 121b0d17251Schristos 122b0d17251Schristos=item B<-sign> 123b0d17251Schristos 124b0d17251SchristosSign the input data (which must be a hash) and output the signed result. This 125b0d17251Schristosrequires a private key. 126b0d17251Schristos 127b0d17251Schristos=item B<-verify> 128b0d17251Schristos 129b0d17251SchristosVerify the input data (which must be a hash) against the signature file and 130b0d17251Schristosindicate if the verification succeeded or failed. 131b0d17251Schristos 132b0d17251Schristos=item B<-verifyrecover> 133b0d17251Schristos 134b0d17251SchristosVerify the input data (which must be a hash) and output the recovered data. 135b0d17251Schristos 136b0d17251Schristos=item B<-encrypt> 137b0d17251Schristos 138b0d17251SchristosEncrypt the input data using a public key. 139b0d17251Schristos 140b0d17251Schristos=item B<-decrypt> 141b0d17251Schristos 142b0d17251SchristosDecrypt the input data using a private key. 143b0d17251Schristos 144b0d17251Schristos=item B<-derive> 145b0d17251Schristos 146b0d17251SchristosDerive a shared secret using the peer key. 147b0d17251Schristos 148b0d17251Schristos=item B<-kdf> I<algorithm> 149b0d17251Schristos 150b0d17251SchristosUse key derivation function I<algorithm>. The supported algorithms are 151b0d17251Schristosat present B<TLS1-PRF> and B<HKDF>. 152b0d17251SchristosNote: additional parameters and the KDF output length will normally have to be 153b0d17251Schristosset for this to work. 154b0d17251SchristosSee L<EVP_PKEY_CTX_set_hkdf_md(3)> and L<EVP_PKEY_CTX_set_tls1_prf_md(3)> 155b0d17251Schristosfor the supported string parameters of each algorithm. 156b0d17251Schristos 157b0d17251Schristos=item B<-kdflen> I<length> 158b0d17251Schristos 159b0d17251SchristosSet the output length for KDF. 160b0d17251Schristos 161b0d17251Schristos=item B<-pkeyopt> I<opt>:I<value> 162b0d17251Schristos 163b0d17251SchristosPublic key options specified as opt:value. See NOTES below for more details. 164b0d17251Schristos 165b0d17251Schristos=item B<-pkeyopt_passin> I<opt>[:I<passarg>] 166b0d17251Schristos 167b0d17251SchristosAllows reading a public key option I<opt> from stdin or a password source. 168b0d17251SchristosIf only I<opt> is specified, the user will be prompted to enter a password on 169b0d17251Schristosstdin. Alternatively, I<passarg> can be specified which can be any value 170b0d17251Schristossupported by L<openssl-passphrase-options(1)>. 171b0d17251Schristos 172b0d17251Schristos=item B<-hexdump> 173b0d17251Schristos 174b0d17251Schristoshex dump the output data. 175b0d17251Schristos 176b0d17251Schristos=item B<-asn1parse> 177b0d17251Schristos 178b0d17251SchristosParse the ASN.1 output data, this is useful when combined with the 179b0d17251SchristosB<-verifyrecover> option when an ASN1 structure is signed. 180b0d17251Schristos 181b0d17251Schristos{- $OpenSSL::safe::opt_engine_item -} 182b0d17251Schristos 183b0d17251Schristos{- output_off() if $disabled{"deprecated-3.0"}; "" -} 184b0d17251Schristos=item B<-engine_impl> 185b0d17251Schristos 186b0d17251SchristosWhen used with the B<-engine> option, it specifies to also use 187b0d17251Schristosengine I<id> for crypto operations. 188b0d17251Schristos{- output_on() if $disabled{"deprecated-3.0"}; "" -} 189b0d17251Schristos 190b0d17251Schristos{- $OpenSSL::safe::opt_r_item -} 191b0d17251Schristos 192b0d17251Schristos{- $OpenSSL::safe::opt_provider_item -} 193b0d17251Schristos 194b0d17251Schristos{- $OpenSSL::safe::opt_config_item -} 195b0d17251Schristos 196b0d17251Schristos=back 197b0d17251Schristos 198b0d17251Schristos=head1 NOTES 199b0d17251Schristos 200b0d17251SchristosThe operations and options supported vary according to the key algorithm 201b0d17251Schristosand its implementation. The OpenSSL operations and options are indicated below. 202b0d17251Schristos 203b0d17251SchristosUnless otherwise mentioned all algorithms support the B<digest:>I<alg> option 204b0d17251Schristoswhich specifies the digest in use for sign, verify and verifyrecover operations. 205b0d17251SchristosThe value I<alg> should represent a digest name as used in the 206b0d17251SchristosEVP_get_digestbyname() function for example B<sha1>. This value is not used to 207b0d17251Schristoshash the input data. It is used (by some algorithms) for sanity-checking the 208b0d17251Schristoslengths of data passed in and for creating the structures that make up the 209b0d17251Schristossignature (e.g. B<DigestInfo> in RSASSA PKCS#1 v1.5 signatures). 210b0d17251Schristos 211b0d17251SchristosThis command does not hash the input data (except where -rawin is used) but 212b0d17251Schristosrather it will use the data directly as input to the signature algorithm. 213b0d17251SchristosDepending on the key type, signature type, and mode of padding, the maximum 214b0d17251Schristosacceptable lengths of input data differ. The signed data can't be longer than 215b0d17251Schristosthe key modulus with RSA. In case of ECDSA and DSA the data shouldn't be longer 216b0d17251Schristosthan the field size, otherwise it will be silently truncated to the field size. 217b0d17251SchristosIn any event the input size must not be larger than the largest supported digest 218b0d17251Schristossize. 219b0d17251Schristos 220b0d17251SchristosIn other words, if the value of digest is B<sha1> the input should be the 20 221b0d17251Schristosbytes long binary encoding of the SHA-1 hash function output. 222b0d17251Schristos 223b0d17251Schristos=head1 RSA ALGORITHM 224b0d17251Schristos 225b0d17251SchristosThe RSA algorithm generally supports the encrypt, decrypt, sign, 226b0d17251Schristosverify and verifyrecover operations. However, some padding modes 227b0d17251Schristossupport only a subset of these operations. The following additional 228b0d17251SchristosB<pkeyopt> values are supported: 229b0d17251Schristos 230b0d17251Schristos=over 4 231b0d17251Schristos 232b0d17251Schristos=item B<rsa_padding_mode:>I<mode> 233b0d17251Schristos 234b0d17251SchristosThis sets the RSA padding mode. Acceptable values for I<mode> are B<pkcs1> for 235b0d17251SchristosPKCS#1 padding, B<none> for no padding, B<oaep> 236b0d17251Schristosfor B<OAEP> mode, B<x931> for X9.31 mode and B<pss> for PSS. 237b0d17251Schristos 238*0e2e28bcSchristosIn PKCS#1 padding, if the message digest is not set, then the supplied data is 239b0d17251Schristossigned or verified directly instead of using a B<DigestInfo> structure. If a 240*0e2e28bcSchristosdigest is set, then the B<DigestInfo> structure is used and its length 241b0d17251Schristosmust correspond to the digest type. 242b0d17251Schristos 243b0d17251SchristosFor B<oaep> mode only encryption and decryption is supported. 244b0d17251Schristos 245b0d17251SchristosFor B<x931> if the digest type is set it is used to format the block data 246b0d17251Schristosotherwise the first byte is used to specify the X9.31 digest ID. Sign, 247b0d17251Schristosverify and verifyrecover are can be performed in this mode. 248b0d17251Schristos 249b0d17251SchristosFor B<pss> mode only sign and verify are supported and the digest type must be 250b0d17251Schristosspecified. 251b0d17251Schristos 252b0d17251Schristos=item B<rsa_pss_saltlen:>I<len> 253b0d17251Schristos 254b0d17251SchristosFor B<pss> mode only this option specifies the salt length. Three special 255b0d17251Schristosvalues are supported: B<digest> sets the salt length to the digest length, 256b0d17251SchristosB<max> sets the salt length to the maximum permissible value. When verifying 257b0d17251SchristosB<auto> causes the salt length to be automatically determined based on the 258b0d17251SchristosB<PSS> block structure. 259b0d17251Schristos 260b0d17251Schristos=item B<rsa_mgf1_md:>I<digest> 261b0d17251Schristos 262b0d17251SchristosFor PSS and OAEP padding sets the MGF1 digest. If the MGF1 digest is not 263b0d17251Schristosexplicitly set in PSS mode then the signing digest is used. 264b0d17251Schristos 265b0d17251Schristos=item B<rsa_oaep_md:>I<digest> 266b0d17251Schristos 267b0d17251SchristosSets the digest used for the OAEP hash function. If not explicitly set then 268b0d17251SchristosSHA1 is used. 269b0d17251Schristos 270b0d17251Schristos=back 271b0d17251Schristos 272b0d17251Schristos=head1 RSA-PSS ALGORITHM 273b0d17251Schristos 274b0d17251SchristosThe RSA-PSS algorithm is a restricted version of the RSA algorithm which only 275b0d17251Schristossupports the sign and verify operations with PSS padding. The following 276b0d17251Schristosadditional B<-pkeyopt> values are supported: 277b0d17251Schristos 278b0d17251Schristos=over 4 279b0d17251Schristos 280b0d17251Schristos=item B<rsa_padding_mode:>I<mode>, B<rsa_pss_saltlen:>I<len>, 281b0d17251SchristosB<rsa_mgf1_md:>I<digest> 282b0d17251Schristos 283b0d17251SchristosThese have the same meaning as the B<RSA> algorithm with some additional 284b0d17251Schristosrestrictions. The padding mode can only be set to B<pss> which is the 285b0d17251Schristosdefault value. 286b0d17251Schristos 287b0d17251SchristosIf the key has parameter restrictions than the digest, MGF1 288b0d17251Schristosdigest and salt length are set to the values specified in the parameters. 289b0d17251SchristosThe digest and MG cannot be changed and the salt length cannot be set to a 290b0d17251Schristosvalue less than the minimum restriction. 291b0d17251Schristos 292b0d17251Schristos=back 293b0d17251Schristos 294b0d17251Schristos=head1 DSA ALGORITHM 295b0d17251Schristos 296b0d17251SchristosThe DSA algorithm supports signing and verification operations only. Currently 297b0d17251Schristosthere are no additional B<-pkeyopt> options other than B<digest>. The SHA1 298b0d17251Schristosdigest is assumed by default. 299b0d17251Schristos 300b0d17251Schristos=head1 DH ALGORITHM 301b0d17251Schristos 302b0d17251SchristosThe DH algorithm only supports the derivation operation and no additional 303b0d17251SchristosB<-pkeyopt> options. 304b0d17251Schristos 305b0d17251Schristos=head1 EC ALGORITHM 306b0d17251Schristos 307b0d17251SchristosThe EC algorithm supports sign, verify and derive operations. The sign and 308b0d17251Schristosverify operations use ECDSA and derive uses ECDH. SHA1 is assumed by default for 309b0d17251Schristosthe B<-pkeyopt> B<digest> option. 310b0d17251Schristos 311b0d17251Schristos=head1 X25519 AND X448 ALGORITHMS 312b0d17251Schristos 313b0d17251SchristosThe X25519 and X448 algorithms support key derivation only. Currently there are 314b0d17251Schristosno additional options. 315b0d17251Schristos 316b0d17251Schristos=head1 ED25519 AND ED448 ALGORITHMS 317b0d17251Schristos 318b0d17251SchristosThese algorithms only support signing and verifying. OpenSSL only implements the 319b0d17251Schristos"pure" variants of these algorithms so raw data can be passed directly to them 320b0d17251Schristoswithout hashing them first. The option B<-rawin> must be used with these 321b0d17251Schristosalgorithms with no B<-digest> specified. Additionally OpenSSL only supports 322b0d17251Schristos"oneshot" operation with these algorithms. This means that the entire file to 323b0d17251Schristosbe signed/verified must be read into memory before processing it. Signing or 324b0d17251SchristosVerifying very large files should be avoided. Additionally the size of the file 325b0d17251Schristosmust be known for this to work. If the size of the file cannot be determined 326b0d17251Schristos(for example if the input is stdin) then the sign or verify operation will fail. 327b0d17251Schristos 328b0d17251Schristos=head1 SM2 329b0d17251Schristos 330b0d17251SchristosThe SM2 algorithm supports sign, verify, encrypt and decrypt operations. For 331b0d17251Schristosthe sign and verify operations, SM2 requires an Distinguishing ID string to 332b0d17251Schristosbe passed in. The following B<-pkeyopt> value is supported: 333b0d17251Schristos 334b0d17251Schristos=over 4 335b0d17251Schristos 336b0d17251Schristos=item B<distid:>I<string> 337b0d17251Schristos 338b0d17251SchristosThis sets the ID string used in SM2 sign or verify operations. While verifying 339b0d17251Schristosan SM2 signature, the ID string must be the same one used when signing the data. 340b0d17251SchristosOtherwise the verification will fail. 341b0d17251Schristos 342b0d17251Schristos=item B<hexdistid:>I<hex_string> 343b0d17251Schristos 344b0d17251SchristosThis sets the ID string used in SM2 sign or verify operations. While verifying 345b0d17251Schristosan SM2 signature, the ID string must be the same one used when signing the data. 346b0d17251SchristosOtherwise the verification will fail. The ID string provided with this option 347b0d17251Schristosshould be a valid hexadecimal value. 348b0d17251Schristos 349b0d17251Schristos=back 350b0d17251Schristos 351b0d17251Schristos=head1 EXAMPLES 352b0d17251Schristos 353b0d17251SchristosSign some data using a private key: 354b0d17251Schristos 355b0d17251Schristos openssl pkeyutl -sign -in file -inkey key.pem -out sig 356b0d17251Schristos 357b0d17251SchristosRecover the signed data (e.g. if an RSA key is used): 358b0d17251Schristos 359b0d17251Schristos openssl pkeyutl -verifyrecover -in sig -inkey key.pem 360b0d17251Schristos 361b0d17251SchristosVerify the signature (e.g. a DSA key): 362b0d17251Schristos 363b0d17251Schristos openssl pkeyutl -verify -in file -sigfile sig -inkey key.pem 364b0d17251Schristos 365b0d17251SchristosSign data using a message digest value (this is currently only valid for RSA): 366b0d17251Schristos 367b0d17251Schristos openssl pkeyutl -sign -in file -inkey key.pem -out sig -pkeyopt digest:sha256 368b0d17251Schristos 369b0d17251SchristosDerive a shared secret value: 370b0d17251Schristos 371b0d17251Schristos openssl pkeyutl -derive -inkey key.pem -peerkey pubkey.pem -out secret 372b0d17251Schristos 373b0d17251SchristosHexdump 48 bytes of TLS1 PRF using digest B<SHA256> and shared secret and 374b0d17251Schristosseed consisting of the single byte 0xFF: 375b0d17251Schristos 376b0d17251Schristos openssl pkeyutl -kdf TLS1-PRF -kdflen 48 -pkeyopt md:SHA256 \ 377b0d17251Schristos -pkeyopt hexsecret:ff -pkeyopt hexseed:ff -hexdump 378b0d17251Schristos 379b0d17251SchristosDerive a key using B<scrypt> where the password is read from command line: 380b0d17251Schristos 381b0d17251Schristos openssl pkeyutl -kdf scrypt -kdflen 16 -pkeyopt_passin pass \ 382b0d17251Schristos -pkeyopt hexsalt:aabbcc -pkeyopt N:16384 -pkeyopt r:8 -pkeyopt p:1 383b0d17251Schristos 384b0d17251SchristosDerive using the same algorithm, but read key from environment variable MYPASS: 385b0d17251Schristos 386b0d17251Schristos openssl pkeyutl -kdf scrypt -kdflen 16 -pkeyopt_passin pass:env:MYPASS \ 387b0d17251Schristos -pkeyopt hexsalt:aabbcc -pkeyopt N:16384 -pkeyopt r:8 -pkeyopt p:1 388b0d17251Schristos 389b0d17251SchristosSign some data using an L<SM2(7)> private key and a specific ID: 390b0d17251Schristos 391b0d17251Schristos openssl pkeyutl -sign -in file -inkey sm2.key -out sig -rawin -digest sm3 \ 392b0d17251Schristos -pkeyopt distid:someid 393b0d17251Schristos 394b0d17251SchristosVerify some data using an L<SM2(7)> certificate and a specific ID: 395b0d17251Schristos 396b0d17251Schristos openssl pkeyutl -verify -certin -in file -inkey sm2.cert -sigfile sig \ 397b0d17251Schristos -rawin -digest sm3 -pkeyopt distid:someid 398b0d17251Schristos 399b0d17251SchristosDecrypt some data using a private key with OAEP padding using SHA256: 400b0d17251Schristos 401b0d17251Schristos openssl pkeyutl -decrypt -in file -inkey key.pem -out secret \ 402b0d17251Schristos -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256 403b0d17251Schristos 404b0d17251Schristos=head1 SEE ALSO 405b0d17251Schristos 406b0d17251SchristosL<openssl(1)>, 407b0d17251SchristosL<openssl-genpkey(1)>, 408b0d17251SchristosL<openssl-pkey(1)>, 409b0d17251SchristosL<openssl-rsautl(1)> 410b0d17251SchristosL<openssl-dgst(1)>, 411b0d17251SchristosL<openssl-rsa(1)>, 412b0d17251SchristosL<openssl-genrsa(1)>, 413b0d17251SchristosL<openssl-kdf(1)> 414b0d17251SchristosL<EVP_PKEY_CTX_set_hkdf_md(3)>, 415b0d17251SchristosL<EVP_PKEY_CTX_set_tls1_prf_md(3)>, 416b0d17251Schristos 417b0d17251Schristos=head1 HISTORY 418b0d17251Schristos 419b0d17251SchristosThe B<-engine> option was deprecated in OpenSSL 3.0. 420b0d17251Schristos 421b0d17251Schristos=head1 COPYRIGHT 422b0d17251Schristos 423b0d17251SchristosCopyright 2006-2021 The OpenSSL Project Authors. All Rights Reserved. 424b0d17251Schristos 425b0d17251SchristosLicensed under the Apache License 2.0 (the "License"). You may not use 426b0d17251Schristosthis file except in compliance with the License. You can obtain a copy 427b0d17251Schristosin the file LICENSE in the source distribution or at 428b0d17251SchristosL<https://www.openssl.org/source/license.html>. 429b0d17251Schristos 430b0d17251Schristos=cut 431