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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --- a/apps/openssl.cnf
  2. +++ b/apps/openssl.cnf
  3. @@ -22,6 +22,53 @@ 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. +default_algorithms = ALL
  19. +
  20. +[devcrypto]
  21. +# Leave this alone and configure algorithms with CIPERS/DIGESTS below
  22. +default_algorithms = ALL
  23. +
  24. +# Configuration commands:
  25. +# Run 'openssl engine -t -c -vv -pre DUMP_INFO devcrypto' to see a
  26. +# list of supported algorithms, along with their driver, whether they
  27. +# are hw accelerated or not, and the engine's configuration commands.
  28. +
  29. +# USE_SOFTDRIVERS: specifies whether to use software (not accelerated)
  30. +# drivers (0=use only accelerated drivers, 1=allow all drivers, 2=use
  31. +# if acceleration can't be determined) [default=2]
  32. +#USE_SOFTDRIVERS = 2
  33. +
  34. +# CIPHERS: either ALL, NONE, or a comma-separated list of ciphers to
  35. +# enable [default=ALL]
  36. +# It is recommended to disable the ECB ciphers; in most cases, it will
  37. +# only be used for PRNG, in small blocks, where performance is poor,
  38. +# and there may be problems with apps forking with open crypto
  39. +# contexts, leading to failures. The CBC ciphers work well:
  40. +#CIPHERS=DES-CBC, DES-EDE3-CBC, AES-128-CBC, AES-192-CBC, AES-256-CBC
  41. +
  42. +# DIGESTS: either ALL, NONE, or a comma-separated list of digests to
  43. +# enable [default=NONE]
  44. +# It is strongly recommended not to enable digests; their performance
  45. +# is poor, and there are many cases in which they will not work,
  46. +# especially when calling fork with open crypto contexts. Openssh,
  47. +# for example, does this, and you may not be able to login.
  48. +#DIGESTS = NONE
  49. +
  50. +[padlock]
  51. +default_algorithms = ALL
  52. +
  53. [ new_oids ]
  54. # We can add new OIDs in here for use by 'ca', 'req' and 'ts'.