Skip to content

Instantly share code, notes, and snippets.

@nathan-osman
Last active June 15, 2016 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nathan-osman/a3233f77c44ee66911823524a6ebe70e to your computer and use it in GitHub Desktop.
Save nathan-osman/a3233f77c44ee66911823524a6ebe70e to your computer and use it in GitHub Desktop.

Using TLS in NitroShare

Current builds of NitroShare now include support for TLS. This feature is still in active development but enough has been completed that it is ready for testing.

To use this feature, you must first generate a key and root CA certificate:

openssl genrsa -out root.key 2048
openssl req -x509 -new -nodes -key root.key -sha256 -days 3650 -out root.crt

You will be asked a few questions about the CA and it is important you do not leave any fields blank since this causes problems verifying the certificates later. Next, you will need to generate a key, CRL, and signed certificate for each device:

openssl genrsa -out device01.key 2048
openssl req -new -key device01.key -out device01.csr
openssl x509 -req -in device01.csr -CA root.crt -CAkey root.key -CAcreateserial -out device01.crt -days 3650 -sha256

All devices will use the same CA certificate (root.crt) and each will have its own private key and signed certificate. Open the settings dialog and provide the paths to the appropriate file and enable TLS:

Once TLS is enabled for each device, you're good to go! All transfers will be done over encrypted connections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment