openssl-spkac.pod.in 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. =pod
  2. =begin comment
  3. {- join("\n", @autowarntext) -}
  4. =end comment
  5. =head1 NAME
  6. openssl-spkac - SPKAC printing and generating command
  7. =head1 SYNOPSIS
  8. B<openssl> B<spkac>
  9. [B<-help>]
  10. [B<-in> I<filename>]
  11. [B<-out> I<filename>]
  12. [B<-key> I<filename>|I<uri>]
  13. [B<-keyform> B<DER>|B<PEM>|B<P12>|B<ENGINE>]
  14. [B<-passin> I<arg>]
  15. [B<-challenge> I<string>]
  16. [B<-pubkey>]
  17. [B<-spkac> I<spkacname>]
  18. [B<-spksect> I<section>]
  19. [B<-noout>]
  20. [B<-verify>]
  21. {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_provider_synopsis -}
  22. =head1 DESCRIPTION
  23. This command processes Netscape signed public key and challenge
  24. (SPKAC) files. It can print out their contents, verify the signature and
  25. produce its own SPKACs from a supplied private key.
  26. =head1 OPTIONS
  27. =over 4
  28. =item B<-help>
  29. Print out a usage message.
  30. =item B<-in> I<filename>
  31. This specifies the input filename to read from or standard input if this
  32. option is not specified. Ignored if the B<-key> option is used.
  33. =item B<-out> I<filename>
  34. Specifies the output filename to write to or standard output by
  35. default.
  36. =item B<-key> I<filename>|I<uri>
  37. Create an SPKAC file using the private key specified by I<filename> or I<uri>.
  38. The B<-in>, B<-noout>, B<-spksect> and B<-verify> options are ignored if
  39. present.
  40. =item B<-keyform> B<DER>|B<PEM>|B<P12>|B<ENGINE>
  41. The key format; unspecified by default.
  42. See L<openssl-format-options(1)> for details.
  43. =item B<-passin> I<arg>
  44. The input file password source. For more information about the format of I<arg>
  45. see L<openssl-passphrase-options(1)>.
  46. =item B<-challenge> I<string>
  47. Specifies the challenge string if an SPKAC is being created.
  48. =item B<-spkac> I<spkacname>
  49. Allows an alternative name form the variable containing the
  50. SPKAC. The default is "SPKAC". This option affects both
  51. generated and input SPKAC files.
  52. =item B<-spksect> I<section>
  53. Allows an alternative name form the section containing the
  54. SPKAC. The default is the default section.
  55. =item B<-noout>
  56. Don't output the text version of the SPKAC (not used if an
  57. SPKAC is being created).
  58. =item B<-pubkey>
  59. Output the public key of an SPKAC (not used if an SPKAC is
  60. being created).
  61. =item B<-verify>
  62. Verifies the digital signature on the supplied SPKAC.
  63. {- $OpenSSL::safe::opt_engine_item -}
  64. {- $OpenSSL::safe::opt_provider_item -}
  65. =back
  66. =head1 EXAMPLES
  67. Print out the contents of an SPKAC:
  68. openssl spkac -in spkac.cnf
  69. Verify the signature of an SPKAC:
  70. openssl spkac -in spkac.cnf -noout -verify
  71. Create an SPKAC using the challenge string "hello":
  72. openssl spkac -key key.pem -challenge hello -out spkac.cnf
  73. Example of an SPKAC, (long lines split up for clarity):
  74. SPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA\
  75. 1cCoq2Wa3Ixs47uI7FPVwHVIPDx5yso105Y6zpozam135a\
  76. 8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03uPFoQIDAQAB\
  77. FgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJ\
  78. h1bEIYuc2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnD\
  79. dq+NQ3F+X4deMx9AaEglZtULwV4=
  80. =head1 NOTES
  81. A created SPKAC with suitable DN components appended can be fed to
  82. L<openssl-ca(1)>.
  83. SPKACs are typically generated by Netscape when a form is submitted
  84. containing the B<KEYGEN> tag as part of the certificate enrollment
  85. process.
  86. The challenge string permits a primitive form of proof of possession
  87. of private key. By checking the SPKAC signature and a random challenge
  88. string some guarantee is given that the user knows the private key
  89. corresponding to the public key being certified. This is important in
  90. some applications. Without this it is possible for a previous SPKAC
  91. to be used in a "replay attack".
  92. =head1 SEE ALSO
  93. L<openssl(1)>,
  94. L<openssl-ca(1)>
  95. =head1 HISTORY
  96. The B<-engine> option was deprecated in OpenSSL 3.0.
  97. =head1 COPYRIGHT
  98. Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
  99. Licensed under the Apache License 2.0 (the "License"). You may not use
  100. this file except in compliance with the License. You can obtain a copy
  101. in the file LICENSE in the source distribution or at
  102. L<https://www.openssl.org/source/license.html>.
  103. =cut