openssl-spkac.pod.in 4.1 KB

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