spkac.pod 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. =pod
  2. =head1 NAME
  3. spkac - SPKAC printing and generating utility
  4. =head1 SYNOPSIS
  5. B<openssl> B<spkac>
  6. [B<-in filename>]
  7. [B<-out filename>]
  8. [B<-key keyfile>]
  9. [B<-passin arg>]
  10. [B<-challenge string>]
  11. [B<-pubkey>]
  12. [B<-spkac spkacname>]
  13. [B<-spksect section>]
  14. [B<-noout>]
  15. [B<-verify>]
  16. [B<-engine id>]
  17. =head1 DESCRIPTION
  18. The B<spkac> command processes Netscape signed public key and challenge
  19. (SPKAC) files. It can print out their contents, verify the signature and
  20. produce its own SPKACs from a supplied private key.
  21. =head1 COMMAND OPTIONS
  22. =over 4
  23. =item B<-in filename>
  24. This specifies the input filename to read from or standard input if this
  25. option is not specified. Ignored if the B<-key> option is used.
  26. =item B<-out filename>
  27. specifies the output filename to write to or standard output by
  28. default.
  29. =item B<-key keyfile>
  30. create an SPKAC file using the private key in B<keyfile>. The
  31. B<-in>, B<-noout>, B<-spksect> and B<-verify> options are ignored if
  32. present.
  33. =item B<-passin password>
  34. the input file password source. For more information about the format of B<arg>
  35. see the B<PASS PHRASE ARGUMENTS> section in L<openssl(1)|openssl(1)>.
  36. =item B<-challenge string>
  37. specifies the challenge string if an SPKAC is being created.
  38. =item B<-spkac spkacname>
  39. allows an alternative name form the variable containing the
  40. SPKAC. The default is "SPKAC". This option affects both
  41. generated and input SPKAC files.
  42. =item B<-spksect section>
  43. allows an alternative name form the section containing the
  44. SPKAC. The default is the default section.
  45. =item B<-noout>
  46. don't output the text version of the SPKAC (not used if an
  47. SPKAC is being created).
  48. =item B<-pubkey>
  49. output the public key of an SPKAC (not used if an SPKAC is
  50. being created).
  51. =item B<-verify>
  52. verifies the digital signature on the supplied SPKAC.
  53. =item B<-engine id>
  54. specifying an engine (by its unique B<id> string) will cause B<spkac>
  55. to attempt to obtain a functional reference to the specified engine,
  56. thus initialising it if needed. The engine will then be set as the default
  57. for all available algorithms.
  58. =back
  59. =head1 EXAMPLES
  60. Print out the contents of an SPKAC:
  61. openssl spkac -in spkac.cnf
  62. Verify the signature of an SPKAC:
  63. openssl spkac -in spkac.cnf -noout -verify
  64. Create an SPKAC using the challenge string "hello":
  65. openssl spkac -key key.pem -challenge hello -out spkac.cnf
  66. Example of an SPKAC, (long lines split up for clarity):
  67. SPKAC=MIG5MGUwXDANBgkqhkiG9w0BAQEFAANLADBIAkEA1cCoq2Wa3Ixs47uI7F\
  68. PVwHVIPDx5yso105Y6zpozam135a8R0CpoRvkkigIyXfcCjiVi5oWk+6FfPaD03u\
  69. PFoQIDAQABFgVoZWxsbzANBgkqhkiG9w0BAQQFAANBAFpQtY/FojdwkJh1bEIYuc\
  70. 2EeM2KHTWPEepWYeawvHD0gQ3DngSC75YCWnnDdq+NQ3F+X4deMx9AaEglZtULwV\
  71. 4=
  72. =head1 NOTES
  73. A created SPKAC with suitable DN components appended can be fed into
  74. the B<ca> utility.
  75. SPKACs are typically generated by Netscape when a form is submitted
  76. containing the B<KEYGEN> tag as part of the certificate enrollment
  77. process.
  78. The challenge string permits a primitive form of proof of possession
  79. of private key. By checking the SPKAC signature and a random challenge
  80. string some guarantee is given that the user knows the private key
  81. corresponding to the public key being certified. This is important in
  82. some applications. Without this it is possible for a previous SPKAC
  83. to be used in a "replay attack".
  84. =head1 SEE ALSO
  85. L<ca(1)|ca(1)>
  86. =cut