OPENSSL-SPKAC(1ossl)
π« OPENSSL-SPKAC π«
okay so bestie, this is the openssl-spkac page from the OpenSSL manual set β it's the SPKAC printing and generating command, and honestly it's giving "niche but iconic" β¨
πΈ SYNOPSIS πΈ
openssl spkac [-help] [-in filename] [-out filename] [-digest digest]
[-key filename|uri] [-keyform DER|PEM|P12|ENGINE] [-passin arg]
[-challenge string] [-pubkey] [-spkac spkacname] [-spksect section]
[-noout] [-verify] [-engine id] [-provider name] [-provider-path path]
[-provparam [name:]key=value] [-propquery propq]
π¦ DESCRIPTION π¦
So this command processes Netscape signed public key and challenge (SPKAC) files. Like, that's the whole gig. It can:
- print out their contents π
- verify the signature β
- produce its own SPKACs from a supplied private key π
three moods, one command, we love a multitasker π
π OPTIONS π
okay bestie here's the full lineup, no skips, all facts:
-helpβ prints out a usage message. classic. we stan a helpful queen π«Ά-in filenameβ this specifies the input filename to read from, or standard input if you don't specify this option. lowkey important: it's ignored if the-keyoption is used. π-out filenameβ specifies the output filename to write to, or standard output by default.-digest digestβ use the specified digest to sign a created SPKAC file. the default digest algorithm isMD5. (yes, MD5, we'll get to that in HISTORY, don't come for me π)-key filename|uriβ create an SPKAC file using the private key specified by filename or uri. heads up bestie: the-in,-noout,-spksectand-verifyoptions are ignored if present. like, they're simply not invited to this party π-keyform DER|PEM|P12|ENGINEβ the key format; unspecified by default. seeopenssl-format-options(1)for details.-passin argβ the input file password source. for more info about the format of arg, seeopenssl-passphrase-options(1).-challenge stringβ specifies the challenge string if an SPKAC is being created. spicy β¨-spkac spkacnameβ allows an alternative name form the variable containing the SPKAC. the default is"SPKAC". this option affects both generated and input SPKAC files. (yes, the original says "form the variable", we're keeping it, it's canon π)-spksect sectionβ allows an alternative name form the section containing the SPKAC. the default is the default section.-nooutβ don't output the text version of the SPKAC (not used if an SPKAC is being created).-pubkeyβ output the public key of an SPKAC (not used if an SPKAC is being created). π-verifyβ verifies the digital signature on the supplied SPKAC. vibe check for signatures β-engine idβ see "Engine Options" inopenssl(1). β οΈ this option is deprecated.-provider name-provider-path path-provparam [name:]key=value-propquery propqβ see "Provider Options" inopenssl(1),provider(7), andproperty(7). (grouped together in the original, so grouped together here π«Ά)
π EXAMPLES π
these are the moments, bestie. copy them exactly, character for character π
print out the contents of an SPKAC:
openssl spkac -in spkac.cnf
verify the signature of an SPKAC:
openssl spkac -in spkac.cnf -noout -verify
create an SPKAC using the challenge string "hello":
openssl spkac -key key.pem -challenge hello -out spkac.cnf
example of an SPKAC, (long lines split up for clarity) β and yes it's gonna look unhinged, that's just what SPKACs look like:
SPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA\
1cCoq2Wa3Ixs47uI7FPVwHVIPDx5yso105Y6zpozam135a\
8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03uPFoQIDAQAB\
FgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJ\
h1bEIYuc2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnD\
dq+NQ3F+X4deMx9AaEglZtULwV4=
β NOTES β
a created SPKAC with suitable DN components appended can be fed to openssl-ca(1). like, hand it off, it's ready π
SPKACs are typically generated by Netscape when a form is submitted containing the KEYGEN tag as part of the certificate enrollment process. ancient lore, but valid lore π¦
the challenge string permits a primitive form of proof of possession of private key. by checking the SPKAC signature and a random challenge string, some guarantee is given that the user knows the private key corresponding to the public key being certified. this is important in some applications. without this it is possible for a previous SPKAC to be used in a "replay attack". π
ok so that last bit matters, bestie β no challenge string, no proof, and a stale SPKAC can get replayed. don't skip the challenge, it's not just decoration β¨
π SEE ALSO π
π HISTORY π
- the
-engineoption was deprecated in OpenSSL3.0. - the
-digestoption was added in OpenSSL3.0.
πΈ COPYRIGHT πΈ
Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
okay that's the whole page, you ate it, go verify some SPKACs π«Άβ¨ this lil rewrite is serving OpenSSL 3.5.9, dated 2026-09-29 β periodt, mwah π π
π¦ where this page comes from
- alpine 3.23: openssl-doc 3.5.9-r0 Β· Apache-2.0
- alpine 3.24: openssl-doc 3.5.9-r0 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms