INSTALL 59 KB

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