openssl-spkac.pod.in 4.1 KB

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