A private messenger for Windows, macOS, and Linux.
Go to file
Lilia 50c470e53d
Certificate pinning via node XMLHttpRequest implementation (#1394)
* Add certificate pinning on https service requests

Make https requests to the server using node apis instead of browser apis, so we
can specify our own CA list, which contains only our own CA.

This protects us from MITM by a rogue CA.

As a bonus, this let's us drop the use of non-standard ports and just use good
ol' default 443 all the time, at least for http requests.

// FREEBIE

* Make certificateAuthorities an option on requests

Modify node-based xhr implementation based on driverdan/node-XMLHttpRequest,
adding support for setting certificate authorities on each request.

This allows us to pin our master CA for requests to the server and cdn but not
to the s3 attachment server, for instance. Also fix an exception when sending
binary data in a request: it is submitted as an array buffer, and must be
converted to a node Buffer since we are now using a node based request api.

// FREEBIE

* Import node-based xhr implementation

Add a copy of https://github.com/driverdan/node-XMLHttpRequest@86ff70e, and
expose it to the renderer in the preload script.

In later commits this module will be extended to support custom certificate
authorities.

// FREEBIE

* Support "arraybuffer" responseType on requests

When fetching attachments, we want the result as binary data rather than a utf8
string. This lets our node-based XMLHttpRequest honor the responseType property
if it is set on the xhr.

Note that naively using the raw `.buffer` from a node Buffer won't work, since
it is a reuseable backing buffer that is often much larger than the actual
content defined by the Buffer's offset and length.

Instead, we'll prepare a return buffer based on the response's content length
header, and incrementally write chunks of data into it as they arrive.

// FREEBIE

* Switch to self-signed server endpoint

* Log more error info on failed requests

With the node-based xhr, relevant error info are stored in statusText and
responseText when a request fails.

// FREEBIE

* Add node-based websocket w/ support for custom CA

// FREEBIE

* Support handling array buffers instead of blobs

Our node-based websocket calls onmessage with an arraybuffer instead of a blob.
For robustness (on the off chance we switch or update the socket implementation
agian) I've kept the machinery for converting blobs to array buffers.

// FREEBIE

* Destroy all wacky server ports

// FREEBIE
2017-09-14 17:03:17 -07:00
.github Add Signal version number hint to issue template 2016-05-25 23:24:51 -07:00
.tx Add transifex config to git (#1477) 2017-09-14 09:45:34 -07:00
_locales Tune the import error message: suggest re-export, debug log link 2017-09-14 17:03:16 -07:00
app Merge locale-provided strings into english for failover support 2017-09-14 17:03:17 -07:00
audio Add an option to play audio notifications 2017-02-02 09:00:14 -06:00
build Setup for mas build 2017-09-14 16:53:42 -07:00
components Make Jumbomoji normal size when in the conversation preview 2017-06-28 09:14:31 -10:00
config Certificate pinning via node XMLHttpRequest implementation (#1394) 2017-09-14 17:03:17 -07:00
fonts Add fonts so we don't have to hit googlefonts 2015-02-11 17:37:57 -08:00
images Switch to iPhone image in installer 2017-09-14 16:53:43 -07:00
js Certificate pinning via node XMLHttpRequest implementation (#1394) 2017-09-14 17:03:17 -07:00
libtextsecure Certificate pinning via node XMLHttpRequest implementation (#1394) 2017-09-14 17:03:17 -07:00
protos Protos: Update to optional verified in sync (was: repeated) 2017-08-04 12:03:25 -07:00
stylesheets Import: choice on first startup, workflow, ported to Node.js fs API 2017-09-14 17:02:43 -07:00
test Remove migration-related functionality, leaving export stuff 2017-09-14 17:03:14 -07:00
.aptly.conf Setup publishing to s3 2017-09-14 16:53:36 -07:00
.bowerrc Rename bower_components 2014-10-30 16:53:08 -07:00
.gitignore Ignore dev-app-update.yml 2017-09-14 16:53:50 -07:00
.jscsrc Fix minor style errors 2016-02-18 13:45:22 -08:00
.jshintrc jshint: Introduce laxbreak to allow for if clauses on diff lines 2017-08-04 12:03:25 -07:00
.travis.yml Travis: Removing OSX from the platform list for now; long delays! 2017-09-14 16:53:50 -07:00
.yarnclean Fix windows build, don't clean yml 2017-09-14 16:53:44 -07:00
CONTRIBUTING.md Fix code fencing in CONTRIBUTING.md 2017-09-14 16:53:50 -07:00
Gruntfile.js Certificate pinning via node XMLHttpRequest implementation (#1394) 2017-09-14 17:03:17 -07:00
README.md Update copyright year 2017-06-01 16:34:23 -07:00
appveyor.yml Copy emoji from components to images directory for asar creation 2017-09-14 17:03:16 -07:00
aptly.sh Remove questions from aptly.sh - they interrupted automated scripts 2017-09-14 16:53:52 -07:00
background.html Remove migration-related functionality, leaving export stuff 2017-09-14 17:03:14 -07:00
bower.json Introduce new filesize dependency 2017-05-09 15:14:20 -07:00
dev-app-update.yml.sample Show dialog box when there's an update for download 2017-09-14 16:53:50 -07:00
find_broken_perms.sh Add two scripts to handle broken permissions in release dir 2017-09-14 16:53:49 -07:00
fix_broken_perms.sh fix_broken_perms.sh: Restore signal-desktop execute permission 2017-09-14 16:53:49 -07:00
index.html App loading screen: show messages processed so far 2017-08-04 12:03:25 -07:00
main.js Certificate pinning via node XMLHttpRequest implementation (#1394) 2017-09-14 17:03:17 -07:00
manifest.json v0.43.4 2017-09-14 16:41:17 -07:00
package.json Certificate pinning via node XMLHttpRequest implementation (#1394) 2017-09-14 17:03:17 -07:00
preload.js Certificate pinning via node XMLHttpRequest implementation (#1394) 2017-09-14 17:03:17 -07:00
travis.sh Increase unit-tests timeout, improve error display, add set -e 2017-09-14 16:53:47 -07:00
yarn.lock Certificate pinning via node XMLHttpRequest implementation (#1394) 2017-09-14 17:03:17 -07:00

README.md

Build Status Signal Desktop

Get Signal Private Messenger on the Chrome Web Store!

Signal Desktop is a chrome packaged app that links with your Signal Android or Signal iOS app.

Got a question?

The best place to ask questions is http://support.whispersystems.org.

Found a Bug?

Please search the existing issues for your bug and create a new one if the issue is not yet tracked!

https://github.com/WhisperSystems/Signal-Desktop/issues

Contributing Translations

Interested in helping to translate Signal? Contribute here:

https://www.transifex.com/projects/p/signal-desktop

Contributing Code

Please see CONTRIBUTING.md for setup instructions and contributor guidelines. And don't forget to sign the CLA.

This repository is set up with BitHub, so you can make money for committing to Signal. The current BitHub price for an accepted pull request is:

Current BitHub Price

Contributing Ideas

Have something you want to say about Open Whisper Systems projects or want to be part of the conversation? Get involved in the community forum!

Contributing Funds

Donate

You can add funds to BitHub to directly help further development efforts.

Cryptography Notice

This distribution includes cryptographic software. The country in which you currently reside may have restrictions on the import, possession, use, and/or re-export to another country, of encryption software. BEFORE using any encryption software, please check your country's laws, regulations and policies concerning the import, possession, or use, and re-export of encryption software, to see if this is permitted. See http://www.wassenaar.org/ for more information.

The U.S. Government Department of Commerce, Bureau of Industry and Security (BIS), has classified this software as Export Commodity Control Number (ECCN) 5D002.C.1, which includes information security software using or performing cryptographic functions with asymmetric algorithms. The form and manner of this distribution makes it eligible for export under the License Exception ENC Technology Software Unrestricted (TSU) exception (see the BIS Export Administration Regulations, Section 740.13) for both object code and source code.

License

Copyright 2014-2017 Open Whisper Systems

Licensed under the GPLv3: http://www.gnu.org/licenses/gpl-3.0.html