INSTALL 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323
  1. OPENSSL INSTALLATION
  2. --------------------
  3. This document describes installation on all supported operating
  4. systems (the Unix/Linux family (which includes Mac OS/X), OpenVMS,
  5. and Windows).
  6. To install OpenSSL, you will need:
  7. * A make implementation
  8. * Perl 5 with core modules (please read NOTES.PERL)
  9. * The perl module Text::Template (please read NOTES.PERL)
  10. * an ANSI C compiler
  11. * a development environment in the form of development libraries and C
  12. header files
  13. * a supported operating system
  14. For additional platform specific requirements, solutions to specific
  15. issues and other details, please read one of these:
  16. * NOTES.UNIX (any supported Unix like system)
  17. * NOTES.VMS (OpenVMS)
  18. * NOTES.WIN (any supported Windows)
  19. * NOTES.DJGPP (DOS platform with DJGPP)
  20. * NOTES.ANDROID (obviously Android [NDK])
  21. * NOTES.VALGRIND (testing with Valgrind)
  22. Notational conventions in this document
  23. ---------------------------------------
  24. Throughout this document, we use the following conventions in command
  25. examples:
  26. $ command Any line starting with a dollar sign
  27. ($) is a command line.
  28. { word1 | word2 | word3 } This denotes a mandatory choice, to be
  29. replaced with one of the given words.
  30. A simple example would be this:
  31. $ echo { FOO | BAR | COOKIE }
  32. which is to be understood as one of
  33. these:
  34. $ echo FOO
  35. - or -
  36. $ echo BAR
  37. - or -
  38. $ echo COOKIE
  39. [ word1 | word2 | word3 ] Similar to { word1 | word2 | word3 }
  40. except it's optional to give any of
  41. those. In addition to the examples
  42. above, this would also be valid:
  43. $ echo
  44. {{ target }} This denotes a mandatory word or
  45. sequence of words of some sort. A
  46. simple example would be this:
  47. $ type {{ filename }}
  48. which is to be understood to use the
  49. command 'type' on some file name
  50. determined by the user.
  51. [[ options ]] Similar to {{ target }}, but is
  52. optional.
  53. Note that the notation assumes spaces around {, }, [, ], {{, }} and
  54. [[, ]]. This is to differentiate from OpenVMS directory
  55. specifications, which also use [ and ], but without spaces.
  56. Quick Start
  57. -----------
  58. If you want to just get on with it, do:
  59. on Unix (again, this includes Mac OS/X):
  60. $ ./config
  61. $ make
  62. $ make test
  63. $ make install
  64. on OpenVMS:
  65. $ @config
  66. $ mms
  67. $ mms test
  68. $ mms install
  69. on Windows (only pick one of the targets for configuration):
  70. $ perl Configure { VC-WIN32 | VC-WIN64A | VC-WIN64I | VC-CE }
  71. $ nmake
  72. $ nmake test
  73. $ nmake install
  74. Note that in order to perform the install step above you need to have
  75. appropriate permissions to write to the installation directory.
  76. If any of these steps fails, see section Installation in Detail below.
  77. This will build and install OpenSSL in the default location, which is:
  78. Unix: normal installation directories under /usr/local
  79. OpenVMS: SYS$COMMON:[OPENSSL-'version'...], where 'version' is the
  80. OpenSSL version number with underscores instead of periods.
  81. Windows: C:\Program Files\OpenSSL or C:\Program Files (x86)\OpenSSL
  82. The installation directory should be appropriately protected to ensure
  83. unprivileged users cannot make changes to OpenSSL binaries or files, or install
  84. engines. If you already have a pre-installed version of OpenSSL as part of
  85. your Operating System it is recommended that you do not overwrite the system
  86. version and instead install to somewhere else.
  87. If you want to install it anywhere else, run config like this:
  88. On Unix:
  89. $ ./config --prefix=/opt/openssl --openssldir=/usr/local/ssl
  90. On OpenVMS:
  91. $ @config --prefix=PROGRAM:[INSTALLS] --openssldir=SYS$MANAGER:[OPENSSL]
  92. (Note: if you do add options to the configuration command, please make sure
  93. you've read more than just this Quick Start, such as relevant NOTES.* files,
  94. the options outline below, as configuration options may change the outcome
  95. in otherwise unexpected ways)
  96. Configuration Options
  97. ---------------------
  98. There are several options to ./config (or ./Configure) to customize
  99. the build (note that for Windows, the defaults for --prefix and
  100. --openssldir depend in what configuration is used and what Windows
  101. implementation OpenSSL is built on. More notes on this in NOTES.WIN):
  102. --api=x.y.z
  103. Don't build with support for deprecated APIs below the
  104. specified version number. For example "--api=1.1.0" will
  105. remove support for all APIS that were deprecated in OpenSSL
  106. version 1.1.0 or below. This is a rather specialized option
  107. for developers. If you just intend to remove all deprecated
  108. APIs entirely (up to the current version), it is easier
  109. to add the 'no-deprecated' option instead (see below).
  110. --cross-compile-prefix=PREFIX
  111. The PREFIX to include in front of commands for your
  112. toolchain. It's likely to have to end with dash, e.g.
  113. a-b-c- would invoke GNU compiler as a-b-c-gcc, etc.
  114. Unfortunately cross-compiling is too case-specific to
  115. put together one-size-fits-all instructions. You might
  116. have to pass more flags or set up environment variables
  117. to actually make it work. Android and iOS cases are
  118. discussed in corresponding Configurations/15-*.conf
  119. files. But there are cases when this option alone is
  120. sufficient. For example to build the mingw64 target on
  121. Linux "--cross-compile-prefix=x86_64-w64-mingw32-"
  122. works. Naturally provided that mingw packages are
  123. installed. Today Debian and Ubuntu users have option to
  124. install a number of prepackaged cross-compilers along
  125. with corresponding run-time and development packages for
  126. "alien" hardware. To give another example
  127. "--cross-compile-prefix=mipsel-linux-gnu-" suffices
  128. in such case. Needless to mention that you have to
  129. invoke ./Configure, not ./config, and pass your target
  130. name explicitly. Also, note that --openssldir refers
  131. to target's file system, not one you are building on.
  132. --debug
  133. Build OpenSSL with debugging symbols and zero optimization
  134. level.
  135. --libdir=DIR
  136. The name of the directory under the top of the installation
  137. directory tree (see the --prefix option) where libraries will
  138. be installed. By default this is "lib". Note that on Windows
  139. only ".lib" files will be stored in this location. dll files
  140. will always be installed to the "bin" directory.
  141. --openssldir=DIR
  142. Directory for OpenSSL configuration files, and also the
  143. default certificate and key store. Defaults are:
  144. Unix: /usr/local/ssl
  145. Windows: C:\Program Files\Common Files\SSL
  146. or C:\Program Files (x86)\Common Files\SSL
  147. OpenVMS: SYS$COMMON:[OPENSSL-COMMON]
  148. --prefix=DIR
  149. The top of the installation directory tree. Defaults are:
  150. Unix: /usr/local
  151. Windows: C:\Program Files\OpenSSL
  152. or C:\Program Files (x86)\OpenSSL
  153. OpenVMS: SYS$COMMON:[OPENSSL-'version']
  154. --release
  155. Build OpenSSL without debugging symbols. This is the default.
  156. --strict-warnings
  157. This is a developer flag that switches on various compiler
  158. options recommended for OpenSSL development. It only works
  159. when using gcc or clang as the compiler. If you are
  160. developing a patch for OpenSSL then it is recommended that
  161. you use this option where possible.
  162. --with-zlib-include=DIR
  163. The directory for the location of the zlib include file. This
  164. option is only necessary if enable-zlib (see below) is used
  165. and the include file is not already on the system include
  166. path.
  167. --with-zlib-lib=LIB
  168. On Unix: this is the directory containing the zlib library.
  169. If not provided the system library path will be used.
  170. On Windows: this is the filename of the zlib library (with or
  171. without a path). This flag must be provided if the
  172. zlib-dynamic option is not also used. If zlib-dynamic is used
  173. then this flag is optional and a default value ("ZLIB1") is
  174. used if not provided.
  175. On VMS: this is the filename of the zlib library (with or
  176. without a path). This flag is optional and if not provided
  177. then "GNV$LIBZSHR", "GNV$LIBZSHR32" or "GNV$LIBZSHR64" is
  178. used by default depending on the pointer size chosen.
  179. --with-rand-seed=seed1[,seed2,...]
  180. A comma separated list of seeding methods which will be tried
  181. by OpenSSL in order to obtain random input (a.k.a "entropy")
  182. for seeding its cryptographically secure random number
  183. generator (CSPRNG). The current seeding methods are:
  184. os: Use a trusted operating system entropy source.
  185. This is the default method if such an entropy
  186. source exists.
  187. getrandom: Use the L<getrandom(2)> or equivalent system
  188. call.
  189. devrandom: Use the first device from the DEVRANDOM list
  190. which can be opened to read random bytes. The
  191. DEVRANDOM preprocessor constant expands to
  192. "/dev/urandom","/dev/random","/dev/srandom" on
  193. most unix-ish operating systems.
  194. egd: Check for an entropy generating daemon.
  195. rdcpu: Use the RDSEED or RDRAND command if provided by
  196. the CPU.
  197. librandom: Use librandom (not implemented yet).
  198. none: Disable automatic seeding. This is the default
  199. on some operating systems where no suitable
  200. entropy source exists, or no support for it is
  201. implemented yet.
  202. For more information, see the section 'Note on random number
  203. generation' at the end of this document.
  204. no-afalgeng
  205. Don't build the AFALG engine. This option will be forced if
  206. on a platform that does not support AFALG.
  207. enable-ktls
  208. Build with Kernel TLS support. This option will enable the
  209. use of the Kernel TLS data-path, which can improve
  210. performance and allow for the use of sendfile and splice
  211. system calls on TLS sockets. The Kernel may use TLS
  212. accelerators if any are available on the system.
  213. This option will be forced off on systems that do not support
  214. the Kernel TLS data-path.
  215. enable-asan
  216. Build with the Address sanitiser. This is a developer option
  217. only. It may not work on all platforms and should never be
  218. used in production environments. It will only work when used
  219. with gcc or clang and should be used in conjunction with the
  220. no-shared option.
  221. no-asm
  222. Do not use assembler code. This should be viewed as
  223. debugging/trouble-shooting option rather than production.
  224. On some platforms a small amount of assembler code may
  225. still be used even with this option.
  226. no-async
  227. Do not build support for async operations.
  228. no-autoalginit
  229. Don't automatically load all supported ciphers and digests.
  230. Typically OpenSSL will make available all of its supported
  231. ciphers and digests. For a statically linked application this
  232. may be undesirable if small executable size is an objective.
  233. This only affects libcrypto. Ciphers and digests will have to
  234. be loaded manually using EVP_add_cipher() and
  235. EVP_add_digest() if this option is used. This option will
  236. force a non-shared build.
  237. no-autoerrinit
  238. Don't automatically load all libcrypto/libssl error strings.
  239. Typically OpenSSL will automatically load human readable
  240. error strings. For a statically linked application this may
  241. be undesirable if small executable size is an objective.
  242. no-autoload-config
  243. Don't automatically load the default openssl.cnf file.
  244. Typically OpenSSL will automatically load a system config
  245. file which configures default ssl options.
  246. enable-buildtest-c++
  247. While testing, generate C++ buildtest files that
  248. simply check that the public OpenSSL header files
  249. are usable standalone with C++.
  250. Enabling this option demands extra care. For any
  251. compiler flag given directly as configuration
  252. option, you must ensure that it's valid for both
  253. the C and the C++ compiler. If not, the C++ build
  254. test will most likely break. As an alternative,
  255. you can use the language specific variables, CFLAGS
  256. and CXXFLAGS.
  257. no-capieng
  258. Don't build the CAPI engine. This option will be forced if
  259. on a platform that does not support CAPI.
  260. no-cmp
  261. Don't build support for CMP features
  262. no-cms
  263. Don't build support for CMS features
  264. no-comp
  265. Don't build support for SSL/TLS compression. If this option
  266. is left enabled (the default), then compression will only
  267. work if the zlib or zlib-dynamic options are also chosen.
  268. enable-crypto-mdebug
  269. Build support for debugging memory allocated via
  270. OPENSSL_malloc() or OPENSSL_zalloc().
  271. enable-crypto-mdebug-backtrace
  272. As for crypto-mdebug, but additionally provide backtrace
  273. information for allocated memory.
  274. TO BE USED WITH CARE: this uses GNU C functionality, and
  275. is therefore not usable for non-GNU config targets. If
  276. your build complains about the use of '-rdynamic' or the
  277. lack of header file execinfo.h, this option is not for you.
  278. ALSO NOTE that even though execinfo.h is available on your
  279. system (through Gnulib), the functions might just be stubs
  280. that do nothing.
  281. no-ct
  282. Don't build support for Certificate Transparency.
  283. no-deprecated
  284. Don't build with support for any deprecated APIs. This is the
  285. same as using "--api" and supplying the latest version
  286. number.
  287. no-dgram
  288. Don't build support for datagram based BIOs. Selecting this
  289. option will also force the disabling of DTLS.
  290. no-dso
  291. Don't build support for loading Dynamic Shared Objects.
  292. enable-devcryptoeng
  293. Build the /dev/crypto engine. It is automatically selected
  294. on BSD implementations, in which case it can be disabled with
  295. no-devcryptoeng.
  296. no-dynamic-engine
  297. Don't build the dynamically loaded engines. This only has an
  298. effect in a "shared" build
  299. no-ec
  300. Don't build support for Elliptic Curves.
  301. no-ec2m
  302. Don't build support for binary Elliptic Curves
  303. enable-ec_nistp_64_gcc_128
  304. Enable support for optimised implementations of some commonly
  305. used NIST elliptic curves.
  306. This is only supported on platforms:
  307. - with little-endian storage of non-byte types
  308. - that tolerate misaligned memory references
  309. - where the compiler:
  310. - supports the non-standard type __uint128_t
  311. - defines the built-in macro __SIZEOF_INT128__
  312. enable-egd
  313. Build support for gathering entropy from EGD (Entropy
  314. Gathering Daemon).
  315. no-engine
  316. Don't build support for loading engines.
  317. no-err
  318. Don't compile in any error strings.
  319. enable-external-tests
  320. Enable building of integration with external test suites.
  321. This is a developer option and may not work on all platforms.
  322. The only supported external test suite at the current time is
  323. the BoringSSL test suite. See the file test/README.external
  324. for further details.
  325. no-filenames
  326. Don't compile in filename and line number information (e.g.
  327. for errors and memory allocation).
  328. no-fips
  329. Don't compile the FIPS module
  330. enable-fuzz-libfuzzer, enable-fuzz-afl
  331. Build with support for fuzzing using either libfuzzer or AFL.
  332. These are developer options only. They may not work on all
  333. platforms and should never be used in production environments.
  334. See the file fuzz/README.md for further details.
  335. no-gost
  336. Don't build support for GOST based ciphersuites. Note that
  337. if this feature is enabled then GOST ciphersuites are only
  338. available if the GOST algorithms are also available through
  339. loading an externally supplied engine.
  340. no-legacy
  341. Don't build the legacy provider. Disabling this also disables
  342. the legacy algorithms: MD2 (already disabled by default).
  343. no-makedepend
  344. Don't generate dependencies.
  345. no-module
  346. Don't build any dynamically loadable engines. This also
  347. implies 'no-dynamic-engine'.
  348. no-multiblock
  349. Don't build support for writing multiple records in one
  350. go in libssl (Note: this is a different capability to the
  351. pipelining functionality).
  352. no-nextprotoneg
  353. Don't build support for the NPN TLS extension.
  354. no-ocsp
  355. Don't build support for OCSP.
  356. no-padlockeng
  357. no-hw-padlock
  358. Don't build the padlock engine.
  359. ('no-hw-padlock' is deprecated and should not be used)
  360. no-pic
  361. Don't build with support for Position Independent Code.
  362. no-pinshared By default OpenSSL will attempt to stay in memory until the
  363. process exits. This is so that libcrypto and libssl can be
  364. properly cleaned up automatically via an "atexit()" handler.
  365. The handler is registered by libcrypto and cleans up both
  366. libraries. On some platforms the atexit() handler will run on
  367. unload of libcrypto (if it has been dynamically loaded)
  368. rather than at process exit. This option can be used to stop
  369. OpenSSL from attempting to stay in memory until the process
  370. exits. This could lead to crashes if either libcrypto or
  371. libssl have already been unloaded at the point
  372. that the atexit handler is invoked, e.g. on a platform which
  373. calls atexit() on unload of the library, and libssl is
  374. unloaded before libcrypto then a crash is likely to happen.
  375. Applications can suppress running of the atexit() handler at
  376. run time by using the OPENSSL_INIT_NO_ATEXIT option to
  377. OPENSSL_init_crypto(). See the man page for it for further
  378. details.
  379. no-posix-io
  380. Don't use POSIX IO capabilities.
  381. no-psk
  382. Don't build support for Pre-Shared Key based ciphersuites.
  383. no-rdrand
  384. Don't use hardware RDRAND capabilities.
  385. no-rfc3779
  386. Don't build support for RFC3779 ("X.509 Extensions for IP
  387. Addresses and AS Identifiers")
  388. sctp
  389. Build support for SCTP
  390. no-shared
  391. Do not create shared libraries, only static ones. See "Note
  392. on shared libraries" below.
  393. no-sock
  394. Don't build support for socket BIOs
  395. no-srp
  396. Don't build support for SRP or SRP based ciphersuites.
  397. no-srtp
  398. Don't build SRTP support
  399. no-sse2
  400. Exclude SSE2 code paths from 32-bit x86 assembly modules.
  401. Normally SSE2 extension is detected at run-time, but the
  402. decision whether or not the machine code will be executed
  403. is taken solely on CPU capability vector. This means that
  404. if you happen to run OS kernel which does not support SSE2
  405. extension on Intel P4 processor, then your application
  406. might be exposed to "illegal instruction" exception.
  407. There might be a way to enable support in kernel, e.g.
  408. FreeBSD kernel can be compiled with CPU_ENABLE_SSE, and
  409. there is a way to disengage SSE2 code paths upon application
  410. start-up, but if you aim for wider "audience" running
  411. such kernel, consider no-sse2. Both the 386 and
  412. no-asm options imply no-sse2.
  413. enable-ssl-trace
  414. Build with the SSL Trace capabilities (adds the "-trace"
  415. option to s_client and s_server).
  416. no-static-engine
  417. Don't build the statically linked engines. This only
  418. has an impact when not built "shared".
  419. no-stdio
  420. Don't use anything from the C header file "stdio.h" that
  421. makes use of the "FILE" type. Only libcrypto and libssl can
  422. be built in this way. Using this option will suppress
  423. building the command line applications. Additionally since
  424. the OpenSSL tests also use the command line applications the
  425. tests will also be skipped.
  426. no-tests
  427. Don't build test programs or run any test.
  428. no-threads
  429. Don't try to build with support for multi-threaded
  430. applications.
  431. threads
  432. Build with support for multi-threaded applications. Most
  433. platforms will enable this by default. However if on a
  434. platform where this is not the case then this will usually
  435. require additional system-dependent options! See "Note on
  436. multi-threading" below.
  437. enable-trace
  438. Build with support for the integrated tracing api. See manual pages
  439. OSSL_trace_set_channel(3) and OSSL_trace_enabled(3) for details.
  440. no-ts
  441. Don't build Time Stamping Authority support.
  442. enable-ubsan
  443. Build with the Undefined Behaviour sanitiser. This is a
  444. developer option only. It may not work on all platforms and
  445. should never be used in production environments. It will only
  446. work when used with gcc or clang and should be used in
  447. conjunction with the "-DPEDANTIC" option (or the
  448. --strict-warnings option).
  449. no-ui
  450. Don't build with the "UI" capability (i.e. the set of
  451. features enabling text based prompts).
  452. enable-unit-test
  453. Enable additional unit test APIs. This should not typically
  454. be used in production deployments.
  455. no-uplink
  456. Don't build support for UPLINK interface.
  457. enable-weak-ssl-ciphers
  458. Build support for SSL/TLS ciphers that are considered "weak"
  459. (e.g. RC4 based ciphersuites).
  460. zlib
  461. Build with support for zlib compression/decompression.
  462. zlib-dynamic
  463. Like "zlib", but has OpenSSL load the zlib library
  464. dynamically when needed. This is only supported on systems
  465. where loading of shared libraries is supported.
  466. 386
  467. In 32-bit x86 builds, when generating assembly modules,
  468. use the 80386 instruction set only (the default x86 code
  469. is more efficient, but requires at least a 486). Note:
  470. This doesn't affect code generated by compiler, you're
  471. likely to complement configuration command line with
  472. suitable compiler-specific option.
  473. no-<prot>
  474. Don't build support for negotiating the specified SSL/TLS
  475. protocol (one of ssl, ssl3, tls, tls1, tls1_1, tls1_2,
  476. tls1_3, dtls, dtls1 or dtls1_2). If "no-tls" is selected then
  477. all of tls1, tls1_1, tls1_2 and tls1_3 are disabled.
  478. Similarly "no-dtls" will disable dtls1 and dtls1_2. The
  479. "no-ssl" option is synonymous with "no-ssl3". Note this only
  480. affects version negotiation. OpenSSL will still provide the
  481. methods for applications to explicitly select the individual
  482. protocol versions.
  483. no-<prot>-method
  484. As for no-<prot> but in addition do not build the methods for
  485. applications to explicitly select individual protocol
  486. versions. Note that there is no "no-tls1_3-method" option
  487. because there is no application method for TLSv1.3. Using
  488. individual protocol methods directly is deprecated.
  489. Applications should use TLS_method() instead.
  490. enable-<alg>
  491. Build with support for the specified algorithm, where <alg>
  492. is one of: md2 or rc5.
  493. no-<alg>
  494. Build without support for the specified algorithm, where
  495. <alg> is one of: aria, bf, blake2, camellia, cast, chacha,
  496. cmac, des, dh, dsa, ecdh, ecdsa, idea, md4, mdc2, ocb,
  497. poly1305, rc2, rc4, rmd160, scrypt, seed, siphash, siv, sm2,
  498. sm3, sm4 or whirlpool. The "ripemd" algorithm is deprecated
  499. and if used is synonymous with rmd160.
  500. -Dxxx, -Ixxx, -Wp, -lxxx, -Lxxx, -Wl, -rpath, -R, -framework, -static
  501. These system specific options will be recognised and
  502. passed through to the compiler to allow you to define
  503. preprocessor symbols, specify additional libraries, library
  504. directories or other compiler options. It might be worth
  505. noting that some compilers generate code specifically for
  506. processor the compiler currently executes on. This is not
  507. necessarily what you might have in mind, since it might be
  508. unsuitable for execution on other, typically older,
  509. processor. Consult your compiler documentation.
  510. Take note of the VAR=value documentation below and how
  511. these flags interact with those variables.
  512. -xxx, +xxx
  513. Additional options that are not otherwise recognised are
  514. passed through as they are to the compiler as well. Again,
  515. consult your compiler documentation.
  516. Take note of the VAR=value documentation below and how
  517. these flags interact with those variables.
  518. VAR=value
  519. Assignment of environment variable for Configure. These
  520. work just like normal environment variable assignments,
  521. but are supported on all platforms and are confined to
  522. the configuration scripts only. These assignments override
  523. the corresponding value in the inherited environment, if
  524. there is one.
  525. The following variables are used as "make variables" and
  526. can be used as an alternative to giving preprocessor,
  527. compiler and linker options directly as configuration.
  528. The following variables are supported:
  529. AR The static library archiver.
  530. ARFLAGS Flags for the static library archiver.
  531. AS The assembler compiler.
  532. ASFLAGS Flags for the assembler compiler.
  533. CC The C compiler.
  534. CFLAGS Flags for the C compiler.
  535. CXX The C++ compiler.
  536. CXXFLAGS Flags for the C++ compiler.
  537. CPP The C/C++ preprocessor.
  538. CPPFLAGS Flags for the C/C++ preprocessor.
  539. CPPDEFINES List of CPP macro definitions, separated
  540. by a platform specific character (':' or
  541. space for Unix, ';' for Windows, ',' for
  542. VMS). This can be used instead of using
  543. -D (or what corresponds to that on your
  544. compiler) in CPPFLAGS.
  545. CPPINCLUDES List of CPP inclusion directories, separated
  546. the same way as for CPPDEFINES. This can
  547. be used instead of -I (or what corresponds
  548. to that on your compiler) in CPPFLAGS.
  549. HASHBANGPERL Perl invocation to be inserted after '#!'
  550. in public perl scripts (only relevant on
  551. Unix).
  552. LD The program linker (not used on Unix, $(CC)
  553. is used there).
  554. LDFLAGS Flags for the shared library, DSO and
  555. program linker.
  556. LDLIBS Extra libraries to use when linking.
  557. Takes the form of a space separated list
  558. of library specifications on Unix and
  559. Windows, and as a comma separated list of
  560. libraries on VMS.
  561. RANLIB The library archive indexer.
  562. RC The Windows resource compiler.
  563. RCFLAGS Flags for the Windows resource compiler.
  564. RM The command to remove files and directories.
  565. These cannot be mixed with compiling / linking flags given
  566. on the command line. In other words, something like this
  567. isn't permitted.
  568. ./config -DFOO CPPFLAGS=-DBAR -DCOOKIE
  569. Backward compatibility note:
  570. To be compatible with older configuration scripts, the
  571. environment variables are ignored if compiling / linking
  572. flags are given on the command line, except for these:
  573. AR, CC, CXX, CROSS_COMPILE, HASHBANGPERL, PERL, RANLIB, RC
  574. and WINDRES
  575. For example, the following command will not see -DBAR:
  576. CPPFLAGS=-DBAR ./config -DCOOKIE
  577. However, the following will see both set variables:
  578. CC=gcc CROSS_COMPILE=x86_64-w64-mingw32- \
  579. ./config -DCOOKIE
  580. If CC is set, it is advisable to also set CXX to ensure
  581. both C and C++ compilers are in the same "family". This
  582. becomes relevant with 'enable-external-tests' and
  583. 'enable-buildtest-c++'.
  584. reconf
  585. reconfigure
  586. Reconfigure from earlier data. This fetches the previous
  587. command line options and environment from data saved in
  588. "configdata.pm", and runs the configuration process again,
  589. using these options and environment.
  590. Note: NO other option is permitted together with "reconf".
  591. This means that you also MUST use "./Configure" (or
  592. what corresponds to that on non-Unix platforms) directly
  593. to invoke this option.
  594. Note: The original configuration saves away values for ALL
  595. environment variables that were used, and if they weren't
  596. defined, they are still saved away with information that
  597. they weren't originally defined. This information takes
  598. precedence over environment variables that are defined
  599. when reconfiguring.
  600. Displaying configuration data
  601. -----------------------------
  602. The configuration script itself will say very little, and finishes by
  603. creating "configdata.pm". This perl module can be loaded by other scripts
  604. to find all the configuration data, and it can also be used as a script to
  605. display all sorts of configuration data in a human readable form.
  606. For more information, please do:
  607. $ ./configdata.pm --help # Unix
  608. or
  609. $ perl configdata.pm --help # Windows and VMS
  610. Installation in Detail
  611. ----------------------
  612. 1a. Configure OpenSSL for your operation system automatically:
  613. NOTE: This is not available on Windows.
  614. $ ./config [[ options ]] # Unix
  615. or
  616. $ @config [[ options ]] ! OpenVMS
  617. For the remainder of this text, the Unix form will be used in all
  618. examples, please use the appropriate form for your platform.
  619. This guesses at your operating system (and compiler, if necessary) and
  620. configures OpenSSL based on this guess. Run ./config -t to see
  621. if it guessed correctly. If you want to use a different compiler, you
  622. are cross-compiling for another platform, or the ./config guess was
  623. wrong for other reasons, go to step 1b. Otherwise go to step 2.
  624. On some systems, you can include debugging information as follows:
  625. $ ./config -d [[ options ]]
  626. 1b. Configure OpenSSL for your operating system manually
  627. OpenSSL knows about a range of different operating system, hardware and
  628. compiler combinations. To see the ones it knows about, run
  629. $ ./Configure # Unix
  630. or
  631. $ perl Configure # All other platforms
  632. For the remainder of this text, the Unix form will be used in all
  633. examples, please use the appropriate form for your platform.
  634. Pick a suitable name from the list that matches your system. For most
  635. operating systems there is a choice between using "cc" or "gcc". When
  636. you have identified your system (and if necessary compiler) use this name
  637. as the argument to Configure. For example, a "linux-elf" user would
  638. run:
  639. $ ./Configure linux-elf [[ options ]]
  640. If your system isn't listed, you will have to create a configuration
  641. file named Configurations/{{ something }}.conf and add the correct
  642. configuration for your system. See the available configs as examples
  643. and read Configurations/README and Configurations/README.design for
  644. more information.
  645. The generic configurations "cc" or "gcc" should usually work on 32 bit
  646. Unix-like systems.
  647. Configure creates a build file ("Makefile" on Unix, "makefile" on Windows
  648. and "descrip.mms" on OpenVMS) from a suitable template in Configurations,
  649. and defines various macros in include/openssl/opensslconf.h (generated from
  650. include/openssl/opensslconf.h.in).
  651. 1c. Configure OpenSSL for building outside of the source tree.
  652. OpenSSL can be configured to build in a build directory separate from
  653. the directory with the source code. It's done by placing yourself in
  654. some other directory and invoking the configuration commands from
  655. there.
  656. Unix example:
  657. $ mkdir /var/tmp/openssl-build
  658. $ cd /var/tmp/openssl-build
  659. $ /PATH/TO/OPENSSL/SOURCE/config [[ options ]]
  660. or
  661. $ /PATH/TO/OPENSSL/SOURCE/Configure {{ target }} [[ options ]]
  662. OpenVMS example:
  663. $ set default sys$login:
  664. $ create/dir [.tmp.openssl-build]
  665. $ set default [.tmp.openssl-build]
  666. $ @[PATH.TO.OPENSSL.SOURCE]config [[ options ]]
  667. or
  668. $ @[PATH.TO.OPENSSL.SOURCE]Configure {{ target }} [[ options ]]
  669. Windows example:
  670. $ C:
  671. $ mkdir \temp-openssl
  672. $ cd \temp-openssl
  673. $ perl d:\PATH\TO\OPENSSL\SOURCE\Configure {{ target }} [[ options ]]
  674. Paths can be relative just as well as absolute. Configure will
  675. do its best to translate them to relative paths whenever possible.
  676. 2. Build OpenSSL by running:
  677. $ make # Unix
  678. $ mms ! (or mmk) OpenVMS
  679. $ nmake # Windows
  680. This will build the OpenSSL libraries (libcrypto.a and libssl.a on
  681. Unix, corresponding on other platforms) and the OpenSSL binary
  682. ("openssl"). The libraries will be built in the top-level directory,
  683. and the binary will be in the "apps" subdirectory.
  684. Troubleshooting:
  685. If the build fails, look at the output. There may be reasons
  686. for the failure that aren't problems in OpenSSL itself (like
  687. missing standard headers).
  688. If the build succeeded previously, but fails after a source or
  689. configuration change, it might be helpful to clean the build tree
  690. before attempting another build. Use this command:
  691. $ make clean # Unix
  692. $ mms clean ! (or mmk) OpenVMS
  693. $ nmake clean # Windows
  694. Assembler error messages can sometimes be sidestepped by using the
  695. "no-asm" configuration option.
  696. Compiling parts of OpenSSL with gcc and others with the system
  697. compiler will result in unresolved symbols on some systems.
  698. If you are still having problems you can get help by sending an email
  699. to the openssl-users email list (see
  700. https://www.openssl.org/community/mailinglists.html for details). If
  701. it is a bug with OpenSSL itself, please open an issue on GitHub, at
  702. https://github.com/openssl/openssl/issues. Please review the existing
  703. ones first; maybe the bug was already reported or has already been
  704. fixed.
  705. 3. After a successful build, the libraries should be tested. Run:
  706. $ make test # Unix
  707. $ mms test ! OpenVMS
  708. $ nmake test # Windows
  709. NOTE: you MUST run the tests from an unprivileged account (or
  710. disable your privileges temporarily if your platform allows it).
  711. If some tests fail, look at the output. There may be reasons for
  712. the failure that isn't a problem in OpenSSL itself (like a
  713. malfunction with Perl). You may want increased verbosity, that
  714. can be accomplished like this:
  715. Verbosity on failure only (make macro VERBOSE_FAILURE or VF):
  716. $ make VF=1 test # Unix
  717. $ mms /macro=(VF=1) test ! OpenVMS
  718. $ nmake VF=1 test # Windows
  719. Full verbosity (make macro VERBOSE or V):
  720. $ make V=1 test # Unix
  721. $ mms /macro=(V=1) test ! OpenVMS
  722. $ nmake V=1 test # Windows
  723. If you want to run just one or a few specific tests, you can use
  724. the make variable TESTS to specify them, like this:
  725. $ make TESTS='test_rsa test_dsa' test # Unix
  726. $ mms/macro="TESTS=test_rsa test_dsa" test ! OpenVMS
  727. $ nmake TESTS='test_rsa test_dsa' test # Windows
  728. And of course, you can combine (Unix example shown):
  729. $ make VF=1 TESTS='test_rsa test_dsa' test
  730. You can find the list of available tests like this:
  731. $ make list-tests # Unix
  732. $ mms list-tests ! OpenVMS
  733. $ nmake list-tests # Windows
  734. Have a look at the manual for the perl module Test::Harness to
  735. see what other HARNESS_* variables there are.
  736. If you find a problem with OpenSSL itself, try removing any
  737. compiler optimization flags from the CFLAGS line in Makefile and
  738. run "make clean; make" or corresponding.
  739. To report a bug please open an issue on GitHub, at
  740. https://github.com/openssl/openssl/issues.
  741. For more details on how the make variables TESTS can be used,
  742. see section TESTS in Detail below.
  743. 4. If everything tests ok, install OpenSSL with
  744. $ make install # Unix
  745. $ mms install ! OpenVMS
  746. $ nmake install # Windows
  747. Note that in order to perform the install step above you need to have
  748. appropriate permissions to write to the installation directory.
  749. The above commands will install all the software components in this
  750. directory tree under PREFIX (the directory given with --prefix or its
  751. default):
  752. Unix:
  753. bin/ Contains the openssl binary and a few other
  754. utility scripts.
  755. include/openssl
  756. Contains the header files needed if you want
  757. to build your own programs that use libcrypto
  758. or libssl.
  759. lib Contains the OpenSSL library files.
  760. lib/engines Contains the OpenSSL dynamically loadable engines.
  761. share/man/man1 Contains the OpenSSL command line man-pages.
  762. share/man/man3 Contains the OpenSSL library calls man-pages.
  763. share/man/man5 Contains the OpenSSL configuration format man-pages.
  764. share/man/man7 Contains the OpenSSL other misc man-pages.
  765. share/doc/openssl/html/man1
  766. share/doc/openssl/html/man3
  767. share/doc/openssl/html/man5
  768. share/doc/openssl/html/man7
  769. Contains the HTML rendition of the man-pages.
  770. OpenVMS ('arch' is replaced with the architecture name, "Alpha"
  771. or "ia64", 'sover' is replaced with the shared library version
  772. (0101 for 1.1), and 'pz' is replaced with the pointer size
  773. OpenSSL was built with):
  774. [.EXE.'arch'] Contains the openssl binary.
  775. [.EXE] Contains a few utility scripts.
  776. [.include.openssl]
  777. Contains the header files needed if you want
  778. to build your own programs that use libcrypto
  779. or libssl.
  780. [.LIB.'arch'] Contains the OpenSSL library files.
  781. [.ENGINES'sover''pz'.'arch']
  782. Contains the OpenSSL dynamically loadable engines.
  783. [.SYS$STARTUP] Contains startup, login and shutdown scripts.
  784. These define appropriate logical names and
  785. command symbols.
  786. [.SYSTEST] Contains the installation verification procedure.
  787. [.HTML] Contains the HTML rendition of the manual pages.
  788. Additionally, install will add the following directories under
  789. OPENSSLDIR (the directory given with --openssldir or its default)
  790. for you convenience:
  791. certs Initially empty, this is the default location
  792. for certificate files.
  793. private Initially empty, this is the default location
  794. for private key files.
  795. misc Various scripts.
  796. The installation directory should be appropriately protected to ensure
  797. unprivileged users cannot make changes to OpenSSL binaries or files, or
  798. install engines. If you already have a pre-installed version of OpenSSL as
  799. part of your Operating System it is recommended that you do not overwrite
  800. the system version and instead install to somewhere else.
  801. Package builders who want to configure the library for standard
  802. locations, but have the package installed somewhere else so that
  803. it can easily be packaged, can use
  804. $ make DESTDIR=/tmp/package-root install # Unix
  805. $ mms/macro="DESTDIR=TMP:[PACKAGE-ROOT]" install ! OpenVMS
  806. The specified destination directory will be prepended to all
  807. installation target paths.
  808. Compatibility issues with previous OpenSSL versions:
  809. * COMPILING existing applications
  810. Starting with version 1.1.0, OpenSSL hides a number of structures
  811. that were previously open. This includes all internal libssl
  812. structures and a number of EVP types. Accessor functions have
  813. been added to allow controlled access to the structures' data.
  814. This means that some software needs to be rewritten to adapt to
  815. the new ways of doing things. This often amounts to allocating
  816. an instance of a structure explicitly where you could previously
  817. allocate them on the stack as automatic variables, and using the
  818. provided accessor functions where you would previously access a
  819. structure's field directly.
  820. Some APIs have changed as well. However, older APIs have been
  821. preserved when possible.
  822. Environment Variables
  823. ---------------------
  824. A number of environment variables can be used to provide additional control
  825. over the build process. Typically these should be defined prior to running
  826. config or Configure. Not all environment variables are relevant to all
  827. platforms.
  828. AR
  829. The name of the ar executable to use.
  830. BUILDFILE
  831. Use a different build file name than the platform default
  832. ("Makefile" on Unix-like platforms, "makefile" on native Windows,
  833. "descrip.mms" on OpenVMS). This requires that there is a
  834. corresponding build file template. See Configurations/README
  835. for further information.
  836. CC
  837. The compiler to use. Configure will attempt to pick a default
  838. compiler for your platform but this choice can be overridden
  839. using this variable. Set it to the compiler executable you wish
  840. to use, e.g. "gcc" or "clang".
  841. CROSS_COMPILE
  842. This environment variable has the same meaning as for the
  843. "--cross-compile-prefix" Configure flag described above. If both
  844. are set then the Configure flag takes precedence.
  845. NM
  846. The name of the nm executable to use.
  847. OPENSSL_LOCAL_CONFIG_DIR
  848. OpenSSL comes with a database of information about how it
  849. should be built on different platforms as well as build file
  850. templates for those platforms. The database is comprised of
  851. ".conf" files in the Configurations directory. The build
  852. file templates reside there as well as ".tmpl" files. See the
  853. file Configurations/README for further information about the
  854. format of ".conf" files as well as information on the ".tmpl"
  855. files.
  856. In addition to the standard ".conf" and ".tmpl" files, it is
  857. possible to create your own ".conf" and ".tmpl" files and store
  858. them locally, outside the OpenSSL source tree. This environment
  859. variable can be set to the directory where these files are held
  860. and will be considered by Configure before it looks in the
  861. standard directories.
  862. PERL
  863. The name of the Perl executable to use when building OpenSSL.
  864. This variable is used in config script only. Configure on the
  865. other hand imposes the interpreter by which it itself was
  866. executed on the whole build procedure.
  867. HASHBANGPERL
  868. The command string for the Perl executable to insert in the
  869. #! line of perl scripts that will be publically installed.
  870. Default: /usr/bin/env perl
  871. Note: the value of this variable is added to the same scripts
  872. on all platforms, but it's only relevant on Unix-like platforms.
  873. RC
  874. The name of the rc executable to use. The default will be as
  875. defined for the target platform in the ".conf" file. If not
  876. defined then "windres" will be used. The WINDRES environment
  877. variable is synonymous to this. If both are defined then RC
  878. takes precedence.
  879. RANLIB
  880. The name of the ranlib executable to use.
  881. WINDRES
  882. See RC.
  883. Makefile targets
  884. ----------------
  885. The Configure script generates a Makefile in a format relevant to the specific
  886. platform. The Makefiles provide a number of targets that can be used. Not all
  887. targets may be available on all platforms. Only the most common targets are
  888. described here. Examine the Makefiles themselves for the full list.
  889. all
  890. The default target to build all the software components.
  891. clean
  892. Remove all build artefacts and return the directory to a "clean"
  893. state.
  894. depend
  895. Rebuild the dependencies in the Makefiles. This is a legacy
  896. option that no longer needs to be used since OpenSSL 1.1.0.
  897. install
  898. Install all OpenSSL components.
  899. install_sw
  900. Only install the OpenSSL software components.
  901. install_docs
  902. Only install the OpenSSL documentation components.
  903. install_man_docs
  904. Only install the OpenSSL man pages (Unix only).
  905. install_html_docs
  906. Only install the OpenSSL html documentation.
  907. list-tests
  908. Prints a list of all the self test names.
  909. test
  910. Build and run the OpenSSL self tests.
  911. uninstall
  912. Uninstall all OpenSSL components.
  913. reconfigure
  914. reconf
  915. Re-run the configuration process, as exactly as the last time
  916. as possible.
  917. update
  918. This is a developer option. If you are developing a patch for
  919. OpenSSL you may need to use this if you want to update
  920. automatically generated files; add new error codes or add new
  921. (or change the visibility of) public API functions. (Unix only).
  922. TESTS in Detail
  923. ---------------
  924. The make variable TESTS supports a versatile set of space separated tokens
  925. with which you can specify a set of tests to be performed. With a "current
  926. set of tests" in mind, initially being empty, here are the possible tokens:
  927. alltests The current set of tests becomes the whole set of available
  928. tests (as listed when you do 'make list-tests' or similar).
  929. xxx Adds the test 'xxx' to the current set of tests.
  930. -xxx Removes 'xxx' from the current set of tests. If this is the
  931. first token in the list, the current set of tests is first
  932. assigned the whole set of available tests, effectively making
  933. this token equivalent to TESTS="alltests -xxx".
  934. nn Adds the test group 'nn' (which is a number) to the current
  935. set of tests.
  936. -nn Removes the test group 'nn' from the current set of tests.
  937. If this is the first token in the list, the current set of
  938. tests is first assigned the whole set of available tests,
  939. effectively making this token equivalent to
  940. TESTS="alltests -xxx".
  941. Also, all tokens except for "alltests" may have wildcards, such as *.
  942. (on Unix and Windows, BSD style wildcards are supported, while on VMS,
  943. it's VMS style wildcards)
  944. Example: All tests except for the fuzz tests:
  945. $ make TESTS=-test_fuzz test
  946. or (if you want to be explicit)
  947. $ make TESTS='alltests -test_fuzz' test
  948. Example: All tests that have a name starting with "test_ssl" but not those
  949. starting with "test_ssl_":
  950. $ make TESTS='test_ssl* -test_ssl_*' test
  951. Example: Only test group 10:
  952. $ make TESTS='10'
  953. Example: All tests except the slow group (group 99):
  954. $ make TESTS='-99'
  955. Example: All tests in test groups 80 to 99 except for tests in group 90:
  956. $ make TESTS='[89]? -90'
  957. To stochastically verify that the algorithm that produces uniformly distributed
  958. random numbers is operating correctly (with a false positive rate of 0.01%):
  959. $ ./util/shlib_wrap.sh test/bntest -stochastic
  960. Note on multi-threading
  961. -----------------------
  962. For some systems, the OpenSSL Configure script knows what compiler options
  963. are needed to generate a library that is suitable for multi-threaded
  964. applications. On these systems, support for multi-threading is enabled
  965. by default; use the "no-threads" option to disable (this should never be
  966. necessary).
  967. On other systems, to enable support for multi-threading, you will have
  968. to specify at least two options: "threads", and a system-dependent option.
  969. (The latter is "-D_REENTRANT" on various systems.) The default in this
  970. case, obviously, is not to include support for multi-threading (but
  971. you can still use "no-threads" to suppress an annoying warning message
  972. from the Configure script.)
  973. OpenSSL provides built-in support for two threading models: pthreads (found on
  974. most UNIX/Linux systems), and Windows threads. No other threading models are
  975. supported. If your platform does not provide pthreads or Windows threads then
  976. you should Configure with the "no-threads" option.
  977. Notes on shared libraries
  978. -------------------------
  979. For most systems the OpenSSL Configure script knows what is needed to
  980. build shared libraries for libcrypto and libssl. On these systems
  981. the shared libraries will be created by default. This can be suppressed and
  982. only static libraries created by using the "no-shared" option. On systems
  983. where OpenSSL does not know how to build shared libraries the "no-shared"
  984. option will be forced and only static libraries will be created.
  985. Shared libraries are named a little differently on different platforms.
  986. One way or another, they all have the major OpenSSL version number as
  987. part of the file name, i.e. for OpenSSL 1.1.x, 1.1 is somehow part of
  988. the name.
  989. On most POSIX platforms, shared libraries are named libcrypto.so.1.1
  990. and libssl.so.1.1.
  991. on Cygwin, shared libraries are named cygcrypto-1.1.dll and cygssl-1.1.dll
  992. with import libraries libcrypto.dll.a and libssl.dll.a.
  993. On Windows build with MSVC or using MingW, shared libraries are named
  994. libcrypto-1_1.dll and libssl-1_1.dll for 32-bit Windows, libcrypto-1_1-x64.dll
  995. and libssl-1_1-x64.dll for 64-bit x86_64 Windows, and libcrypto-1_1-ia64.dll
  996. and libssl-1_1-ia64.dll for IA64 Windows. With MSVC, the import libraries
  997. are named libcrypto.lib and libssl.lib, while with MingW, they are named
  998. libcrypto.dll.a and libssl.dll.a.
  999. On VMS, shareable images (VMS speak for shared libraries) are named
  1000. ossl$libcrypto0101_shr.exe and ossl$libssl0101_shr.exe. However, when
  1001. OpenSSL is specifically built for 32-bit pointers, the shareable images
  1002. are named ossl$libcrypto0101_shr32.exe and ossl$libssl0101_shr32.exe
  1003. instead, and when built for 64-bit pointers, they are named
  1004. ossl$libcrypto0101_shr64.exe and ossl$libssl0101_shr64.exe.
  1005. Note on random number generation
  1006. --------------------------------
  1007. Availability of cryptographically secure random numbers is required for
  1008. secret key generation. OpenSSL provides several options to seed the
  1009. internal CSPRNG. If not properly seeded, the internal CSPRNG will refuse
  1010. to deliver random bytes and a "PRNG not seeded error" will occur.
  1011. The seeding method can be configured using the --with-rand-seed option,
  1012. which can be used to specify a comma separated list of seed methods.
  1013. However in most cases OpenSSL will choose a suitable default method,
  1014. so it is not necessary to explicitly provide this option. Note also
  1015. that not all methods are available on all platforms.
  1016. I) On operating systems which provide a suitable randomness source (in
  1017. form of a system call or system device), OpenSSL will use the optimal
  1018. available method to seed the CSPRNG from the operating system's
  1019. randomness sources. This corresponds to the option --with-rand-seed=os.
  1020. II) On systems without such a suitable randomness source, automatic seeding
  1021. and reseeding is disabled (--with-rand-seed=none) and it may be necessary
  1022. to install additional support software to obtain a random seed and reseed
  1023. the CSPRNG manually. Please check out the manual pages for RAND_add(),
  1024. RAND_bytes(), RAND_egd(), and the FAQ for more information.