crypto: support FIPS mode of OpenSSL
[platform/upstream/nodejs.git] / README.md
1
2 io.js
3 =====
4
5 [![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/nodejs/io.js?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
7 This repository began as a GitHub fork of
8 [joyent/node](https://github.com/joyent/node).
9
10 io.js contributions, releases, and contributorship are under an
11 [open governance model](./GOVERNANCE.md).
12 We intend to land, with increasing regularity, releases which are
13 compatible with the npm ecosystem that has been built to date for
14 Node.js.
15
16 ## Is it io.js or IO.js or iojs or IOjs or iOjS?
17
18 The official name is **io.js**, which should never be capitalized,
19 especially not at the start of a sentence, unless it is being
20 displayed in a location that is customarily all-caps (such as
21 the title of man pages).
22
23 ## Download
24
25 Binaries, installers, and source tarballs are available at
26 <https://iojs.org>.
27
28 **Releases** are available at <https://iojs.org/dist/>, listed under
29 their version string. The <https://iojs.org/dist/latest/> symlink
30 will point to the latest release directory.
31
32 **Nightly** builds are available at
33 <https://iojs.org/download/nightly/>, listed under their version
34 string which includes their date (in UTC time) and the commit SHA at
35 the HEAD of the release.
36
37 **API documentation** is available in each release and nightly
38 directory under _docs_. <https://iojs.org/api/> points to the latest version.
39
40 ### Verifying Binaries
41
42 Release and nightly download directories all contain a *SHASUM256.txt*
43 file that lists the SHA checksums for each file available for
44 download. To check that a downloaded file matches the checksum, run
45 it through `sha256sum` with a command such as:
46
47 ```
48 $ grep iojs-vx.y.z.tar.gz SHASUMS256.txt | sha256sum -c -
49 ```
50
51 _(Where "iojs-vx.y.z.tar.gz" is the name of the file you have
52 downloaded)_
53
54 Additionally, releases (not nightlies) have GPG signed copies of
55 SHASUM256.txt files available as SHASUM256.txt.asc. You can use `gpg`
56 to verify that the file has not been tampered with.
57
58 To verify a SHASUM256.txt.asc, you will first need to import all of
59 the GPG keys of individuals authorized to create releases. They are
60 listed at the bottom of this README. Use a command such as this to
61 import the keys:
62
63 ```
64 $ gpg --keyserver pool.sks-keyservers.net \
65   --recv-keys DD8F2338BAE7501E3DD5AC78C273792F7D83545D
66 ```
67
68 _(Include each of the key fingerprints at the end of this command.)_
69
70 You can then use `gpg --verify SHASUMS256.txt.asc` to verify that the
71 file has been signed by an authorized member of the io.js team.
72
73 Once verified, use the SHASUMS256.txt.asc file to get the checksum for
74 the binary verification command above.
75
76 ## Build
77
78 ### Unix / Macintosh
79
80 Prerequisites:
81
82 * `gcc` and `g++` 4.8 or newer, or
83 * `clang` and `clang++` 3.4 or newer
84 * Python 2.6 or 2.7
85 * GNU Make 3.81 or newer
86 * libexecinfo (FreeBSD and OpenBSD only)
87
88 ```text
89 $ ./configure
90 $ make
91 $ [sudo] make install
92 ```
93
94 If your Python binary is in a non-standard location or has a
95 non-standard name, run the following instead:
96
97 ```text
98 $ export PYTHON=/path/to/python
99 $ $PYTHON ./configure
100 $ make
101 $ [sudo] make install
102 ```
103
104 To run the tests:
105
106 ```text
107 $ make test
108 ```
109
110 To build the documentation:
111
112 ```text
113 $ make doc
114 ```
115
116 To read the documentation:
117
118 ```text
119 $ man doc/iojs.1
120 ```
121
122 ### Windows
123
124 Prerequisites:
125
126 * [Python 2.6 or 2.7](https://www.python.org/downloads/)
127 * Visual Studio 2013 for Windows Desktop, or
128 * Visual Studio Express 2013 for Windows Desktop
129 * Basic Unix tools required for some tests,
130   [Git for Windows](http://git-scm.com/download/win) includes Git Bash
131   and tools which can be included in the global `PATH`.
132
133 ```text
134 > vcbuild nosign
135 ```
136
137 To run the tests:
138
139 ```text
140 > vcbuild test
141 ```
142
143 ### Android / Android based devices, aka. Firefox OS
144
145 Be sure you have downloaded and extracted [Android NDK]
146 (https://developer.android.com/tools/sdk/ndk/index.html)
147 before in a folder. Then run:
148
149 ```
150 $ ./android-configure /path/to/your/android-ndk
151 $ make
152 ```
153
154 ### `Intl` (ECMA-402) support:
155
156 [Intl](https://github.com/joyent/node/wiki/Intl) support is not
157 enabled by default.
158
159 #### "small" (English only) support
160
161 This option will build with "small" (English only) support, but
162 the full `Intl` (ECMA-402) APIs.  With `--download=all` it will
163 download the ICU library as needed.
164
165 Unix / Macintosh:
166
167 ```text
168 $ ./configure --with-intl=small-icu --download=all
169 ```
170
171 Windows:
172
173 ```text
174 > vcbuild small-icu download-all
175 ```
176
177 The `small-icu` mode builds with English-only data. You can add full
178 data at runtime.
179
180 *Note:* more docs are on
181 [the joyent/node wiki](https://github.com/joyent/node/wiki/Intl).
182
183 #### Build with full ICU support (all locales supported by ICU):
184
185 With the `--download=all`, this may download ICU if you don't have an
186 ICU in `deps/icu`.
187
188 Unix / Macintosh:
189
190 ```text
191 $ ./configure --with-intl=full-icu --download=all
192 ```
193
194 Windows:
195
196 ```text
197 > vcbuild full-icu download-all
198 ```
199
200 #### Build with no Intl support `:-(`
201
202 The `Intl` object will not be available. This is the default at
203 present, so this option is not normally needed.
204
205 Unix / Macintosh:
206
207 ```text
208 $ ./configure --with-intl=none
209 ```
210
211 Windows:
212
213 ```text
214 > vcbuild intl-none
215 ```
216
217 #### Use existing installed ICU (Unix / Macintosh only):
218
219 ```text
220 $ pkg-config --modversion icu-i18n && ./configure --with-intl=system-icu
221 ```
222
223 #### Build with a specific ICU:
224
225 You can find other ICU releases at
226 [the ICU homepage](http://icu-project.org/download).
227 Download the file named something like `icu4c-**##.#**-src.tgz` (or
228 `.zip`).
229
230 Unix / Macintosh
231
232 ```text
233 # from an already-unpacked ICU:
234 $ ./configure --with-intl=[small-icu,full-icu] --with-icu-source=/path/to/icu
235
236 # from a local ICU tarball
237 $ ./configure --with-intl=[small-icu,full-icu] --with-icu-source=/path/to/icu.tgz
238
239 # from a tarball URL
240 $ ./configure --with-intl=full-icu --with-icu-source=http://url/to/icu.tgz
241 ```
242
243 Windows
244
245 First unpack latest ICU to `deps/icu`
246 [icu4c-**##.#**-src.tgz](http://icu-project.org/download) (or `.zip`)
247 as `deps/icu` (You'll have: `deps/icu/source/...`)
248
249 ```text
250 > vcbuild full-icu
251 ```
252
253 # Building io.js with FIPS-compliant OpenSSL
254
255 NOTE: Windows is not yet supported
256
257 It is possible to build io.js with
258 [OpenSSL FIPS module](https://www.openssl.org/docs/fips/fipsnotes.html).
259
260 Instructions:
261
262 1. Download and verify `openssl-fips-x.x.x.tar.gz` from
263    https://www.openssl.org/source/
264 2. Extract source to `openssl-fips` folder
265 3. ``cd openssl-fips && ./config fipscanisterbuild --prefix=`pwd`/out``
266    (NOTE: On OS X, you may want to run
267     ``./Configure darwin64-x86_64-cc --prefix=`pwd`/out`` if you are going to
268     build x64-mode io.js)
269 4. `make -j && make install`
270 5. Get into io.js checkout folder
271 6. `./configure --openssl-fips=/path/to/openssl-fips/out`
272 7. Build io.js with `make -j`
273 8. Verify with `node -p "process.versions.openssl"` (`1.0.2a-fips`)
274
275 ## Resources for Newcomers
276
277 * [CONTRIBUTING.md](./CONTRIBUTING.md)
278 * [GOVERNANCE.md](./GOVERNANCE.md)
279 * IRC:
280   [#io.js on Freenode.net](http://webchat.freenode.net?channels=io.js&uio=d4)
281 * [iojs/io.js on Gitter](https://gitter.im/nodejs/io.js)
282
283
284
285 ## Current Project Team Members
286
287 The io.js project team comprises a group of core collaborators and a sub-group
288 that forms the _Technical Committee_ (TC) which governs the project. For more
289 information about the governance of the io.js project, see
290 [GOVERNANCE.md](./GOVERNANCE.md).
291
292 * **Isaac Z. Schlueter** ([@isaacs](https://github.com/isaacs)) &lt;i@izs.me&gt; (Technical Committee)
293 * **Ben Noordhuis** ([@bnoordhuis](https://github.com/bnoordhuis)) &lt;info@bnoordhuis.nl&gt; (Technical Committee)
294 * **Bert Belder** ([@piscisaureus](https://github.com/piscisaureus)) &lt;bertbelder@gmail.com&gt; (Technical Committee)
295 * **Fedor Indutny** ([@indutny](https://github.com/indutny)) &lt;fedor.indutny@gmail.com&gt; (Technical Committee)
296 * **Trevor Norris** ([@trevnorris](https://github.com/trevnorris)) &lt;trev.norris@gmail.com&gt; (Technical Committee)
297 * **Chris Dickinson** ([@chrisdickinson](https://github.com/chrisdickinson)) &lt;christopher.s.dickinson@gmail.com&gt; (Technical Committee)
298   - Release GPG key: 9554F04D7259F04124DE6B476D5A82AC7E37093B
299 * **Colin Ihrig** ([@cjihrig](https://github.com/cjihrig)) &lt;cjihrig@gmail.com&gt;
300 * **Mikeal Rogers** ([@mikeal](https://github.com/mikeal)) &lt;mikeal.rogers@gmail.com&gt;
301 * **Rod Vagg** ([@rvagg](https://github.com/rvagg)) &lt;rod@vagg.org&gt; (Technical Committee)
302   - Release GPG key: DD8F2338BAE7501E3DD5AC78C273792F7D83545D
303 * **Thorsten Lorenz** ([@thlorenz](https://github.com/thlorenz)) &lt;thlorenz@gmx.de&gt;
304 * **Stephen Belanger** ([@qard](https://github.com/qard)) &lt;admin@stephenbelanger.com&gt;
305 * **Jeremiah Senkpiel** ([@fishrock123](https://github.com/fishrock123)) &lt;fishrock123@rocketmail.com&gt; (Technical Committee)
306   - Release GPG key: FD3A5288F042B6850C66B31F09FE44734EB7990E
307 * **Evan Lucas** ([@evanlucas](https://github.com/evanlucas)) &lt;evanlucas@me.com&gt;
308 * **Brendan Ashworth** ([@brendanashworth](https://github.com/brendanashworth)) &lt;brendan.ashworth@me.com&gt;
309 * **Vladimir Kurchatkin** ([@vkurchatkin](https://github.com/vkurchatkin)) &lt;vladimir.kurchatkin@gmail.com&gt;
310 * **Nikolai Vavilov** ([@seishun](https://github.com/seishun)) &lt;vvnicholas@gmail.com&gt;
311 * **Nicu Micleușanu** ([@micnic](https://github.com/micnic)) &lt;micnic90@gmail.com&gt;
312 * **Aleksey Smolenchuk** ([@lxe](https://github.com/lxe)) &lt;lxe@lxe.co&gt;
313 * **Shigeki Ohtsu** ([@shigeki](https://github.com/shigeki)) &lt;ohtsu@iij.ad.jp&gt;
314 * **Sam Roberts** ([@sam-github](https://github.com/sam-github)) &lt;vieuxtech@gmail.com&gt;
315 * **Wyatt Preul** ([@geek](https://github.com/geek)) &lt;wpreul@gmail.com&gt;
316 * **Brian White** ([@mscdex](https://github.com/mscdex)) &lt;mscdex@mscdex.net&gt;
317 * **Christian Vaagland Tellnes** ([@tellnes](https://github.com/tellnes)) &lt;christian@tellnes.com&gt;
318 * **Robert Kowalski** ([@robertkowalski](https://github.com/robertkowalski)) &lt;rok@kowalski.gd&gt;
319 * **Julian Duque** ([@julianduque](https://github.com/julianduque)) &lt;julianduquej@gmail.com&gt;
320 * **Johan Bergström** ([@jbergstroem](https://github.com/jbergstroem)) &lt;bugs@bergstroem.nu&gt;
321 * **Roman Reiss** ([@silverwind](https://github.com/silverwind)) &lt;me@silverwind.io&gt;
322 * **Petka Antonov** ([@petkaantonov](https://github.com/petkaantonov)) &lt;petka_antonov@hotmail.com&gt;
323 * **Yosuke Furukawa** ([@yosuke-furukawa](https://github.com/yosuke-furukawa)) &lt;yosuke.furukawa@gmail.com&gt;
324 * **Alex Kocharin** ([@rlidwka](https://github.com/rlidwka)) &lt;alex@kocharin.ru&gt;
325 * **Christopher Monsanto** ([@monsanto](https://github.com/monsanto)) &lt;chris@monsan.to&gt;
326 * **Ali Ijaz Sheikh** ([@ofrobots](https://github.com/ofrobots)) &lt;ofrobots@google.com&gt;
327 * **Oleg Elifantiev** ([@Olegas](https://github.com/Olegas)) &lt;oleg@elifantiev.ru&gt;
328 * **Domenic Denicola** ([@domenic](https://github.com/domenic)) &lt;d@domenic.me&gt;
329
330 Collaborators follow the [COLLABORATOR_GUIDE.md](./COLLABORATOR_GUIDE.md) in
331 maintaining the io.js project.