gnunet-ecc.1 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. .\" This file is part of GNUnet.
  2. .\" Copyright (C) 2001-2019 GNUnet e.V.
  3. .\"
  4. .\" Permission is granted to copy, distribute and/or modify this document
  5. .\" under the terms of the GNU Free Documentation License, Version 1.3 or
  6. .\" any later version published by the Free Software Foundation; with no
  7. .\" Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
  8. .\" copy of the license is included in the file
  9. .\" FDL-1.3.
  10. .\"
  11. .\" A copy of the license is also available from the Free Software
  12. .\" Foundation Web site at http://www.gnu.org/licenses/fdl.html}.
  13. .\"
  14. .\" Alternately, this document is also available under the General
  15. .\" Public License, version 3 or later, as published by the Free Software
  16. .\" Foundation. A copy of the license is included in the file
  17. .\" GPL3.
  18. .\"
  19. .\" A copy of the license is also available from the Free Software
  20. .\" Foundation Web site at http://www.gnu.org/licenses/gpl.html
  21. .\"
  22. .\" SPDX-License-Identifier: GPL3.0-or-later OR FDL1.3-or-later
  23. .\"
  24. .Dd June 5, 2017
  25. .Dt GNUNET-ECC 1
  26. .Os
  27. .Sh NAME
  28. .Nm gnunet-ecc
  29. .Nd manipulate GNUnet ECC key files
  30. .Sh SYNOPSIS
  31. .Nm
  32. .Op Fl g Ar COUNT | Fl -generate-keys= Ns Ar COUNT
  33. .Op Fl p | -print-public-key
  34. .Op Fl P | -print-private-key
  35. .Op Fl x | -print-hex
  36. .Op Fl c Ar FILENAME | Fl -config= Ns Ar FILENAME
  37. .Op Fl h | -help
  38. .Op Fl L Ar LOGLEVEL | Fl -loglevel= Ns Ar LOGLEVEL
  39. .Op Fl v | -version
  40. .Ao Ar FILENAME Ac
  41. .sp
  42. .Sh DESCRIPTION
  43. .Nm
  44. can be used to create an ECC private key and to print the corresponding public key.
  45. You must specify a filename containing an ECC private key in GNUnet format as an argument.
  46. If the file does not exist, gnunet-ecc will create a key.
  47. This may then take a while.
  48. If the option
  49. .Fl p
  50. is given, the corresponding public key will be printed to the console.
  51. .Bl -tag -width indent
  52. .It Fl g Ar COUNT | Fl -generate-keys= Ns Ar COUNT
  53. Create COUNT public-private key pairs and write them to FILENAME.
  54. Used for creating a file for testing.
  55. .It Fl p | -print-public-key
  56. Print the corresponding public key to stdout.
  57. This is the value used for PKEY records in GNS.
  58. .It Fl P | -print-private-key
  59. Print the corresponding private key to stdout.
  60. This is the value used for PKEY records in GNS.
  61. .It Fl x | -print-hex
  62. Print the corresponding public key to stdout in HEX format.
  63. Useful for comparing to Ed25519 keys in X.509 tools.
  64. .It Fl c Ar FILENAME | Fl -config= Ns Ar FILENAME
  65. Use the configuration file FILENAME.
  66. .It Fl h | -help
  67. Print short help on options.
  68. .It Fl L Ar LOGLEVEL | Fl -loglevel= Ns Ar LOGLEVEL
  69. Use LOGLEVEL for logging.
  70. Valid values are DEBUG, INFO, WARNING and ERROR.
  71. .It Fl v | -version
  72. Print GNUnet version number.
  73. .El
  74. .Sh SEE ALSO
  75. The full documentation for gnunet is maintained as a Texinfo manual.
  76. If the
  77. .Xr info 1
  78. and gnunet programs are properly installed at your site, the command
  79. .Pp
  80. .Dl info gnunet
  81. .Pp
  82. should give you access to the complete handbook,
  83. .Pp
  84. .Dl info gnunet-c-tutorial
  85. .Pp
  86. will give you access to a tutorial for developers.
  87. .sp
  88. Depending on your installation, this information is also available in
  89. .Xr gnunet 7 and
  90. .Xr gnunet-c-tutorial 7 .
  91. .\".Sh HISTORY
  92. .\".Sh AUTHORS
  93. .Sh BUGS
  94. Report bugs by using
  95. .Lk https://bugs.gnunet.org
  96. or by sending electronic mail to
  97. .Aq Mt gnunet-developers@gnu.org .