2
0

150-openssl.cnf-add-engines-conf.patch 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. --- a/apps/openssl.cnf
  2. +++ b/apps/openssl.cnf
  3. @@ -22,6 +22,82 @@ oid_section = new_oids
  4. # (Alternatively, use a configuration file that has only
  5. # X.509v3 extensions in its main [= default] section.)
  6. +openssl_conf=openssl_conf
  7. +
  8. +[openssl_conf]
  9. +engines=engines
  10. +
  11. +[engines]
  12. +# To enable an engine, install the package, and uncomment it here:
  13. +#devcrypto=devcrypto
  14. +#afalg=afalg
  15. +#padlock=padlock
  16. +
  17. +[afalg]
  18. +# Leave this alone and configure algorithms with CIPERS/DIGESTS below
  19. +default_algorithms = ALL
  20. +
  21. +# The following commands are only available if using the alternative
  22. +# (sync) AFALG engine
  23. +# Configuration commands:
  24. +# Run 'openssl engine -t -c -vv -pre DUMP_INFO devcrypto' to see a
  25. +# list of supported algorithms, along with their driver, whether they
  26. +# are hw accelerated or not, and the engine's configuration commands.
  27. +
  28. +# USE_SOFTDRIVERS: specifies whether to use software (not accelerated)
  29. +# drivers (0=use only accelerated drivers, 1=allow all drivers, 2=use
  30. +# if acceleration can't be determined) [default=2]
  31. +#USE_SOFTDRIVERS = 2
  32. +
  33. +# CIPHERS: either ALL, NONE, NO_ECB (all except ECB-mode) or a
  34. +# comma-separated list of ciphers to enable [default=NO_ECB]
  35. +# Starting in 1.2.0, if you use a cipher list, each cipher may be
  36. +# followed by a colon (:) and the minimum request length to use
  37. +# AF_ALG drivers for that cipher; smaller requests are processed by
  38. +# softare; a negative value will use the default for that cipher
  39. +#CIPHERS=AES-128-CBC:1024, AES-256-CBC:768, DES-EDE3-CBC:0
  40. +
  41. +# DIGESTS: either ALL, NONE, or a comma-separated list of digests to
  42. +# enable [default=NONE]
  43. +# It is strongly recommended not to enable digests; their performance
  44. +# is poor, and there are many cases in which they will not work,
  45. +# especially when calling fork with open crypto contexts. Openssh,
  46. +# for example, does this, and you may not be able to login.
  47. +#DIGESTS = NONE
  48. +
  49. +[devcrypto]
  50. +# Leave this alone and configure algorithms with CIPERS/DIGESTS below
  51. +default_algorithms = ALL
  52. +
  53. +# Configuration commands:
  54. +# Run 'openssl engine -t -c -vv -pre DUMP_INFO devcrypto' to see a
  55. +# list of supported algorithms, along with their driver, whether they
  56. +# are hw accelerated or not, and the engine's configuration commands.
  57. +
  58. +# USE_SOFTDRIVERS: specifies whether to use software (not accelerated)
  59. +# drivers (0=use only accelerated drivers, 1=allow all drivers, 2=use
  60. +# if acceleration can't be determined) [default=2]
  61. +#USE_SOFTDRIVERS = 2
  62. +
  63. +# CIPHERS: either ALL, NONE, or a comma-separated list of ciphers to
  64. +# enable [default=ALL]
  65. +# It is recommended to disable the ECB ciphers; in most cases, it will
  66. +# only be used for PRNG, in small blocks, where performance is poor,
  67. +# and there may be problems with apps forking with open crypto
  68. +# contexts, leading to failures. The CBC ciphers work well:
  69. +#CIPHERS=DES-CBC, DES-EDE3-CBC, AES-128-CBC, AES-192-CBC, AES-256-CBC
  70. +
  71. +# DIGESTS: either ALL, NONE, or a comma-separated list of digests to
  72. +# enable [default=NONE]
  73. +# It is strongly recommended not to enable digests; their performance
  74. +# is poor, and there are many cases in which they will not work,
  75. +# especially when calling fork with open crypto contexts. Openssh,
  76. +# for example, does this, and you may not be able to login.
  77. +#DIGESTS = NONE
  78. +
  79. +[padlock]
  80. +default_algorithms = ALL
  81. +
  82. [ new_oids ]
  83. # We can add new OIDs in here for use by 'ca', 'req' and 'ts'.