-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
127 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Example Flows | ||
|
||
| ![TAK Node Example Flow 1](nodes/tak_node-example_flow1.png)| | ||
| :-- | | ||
| TAK Node example Flow 1: TLS connection to a TAK Server. | | ||
|
||
| ![TAK Node Example Flow 2](nodes/tak_node-example_flow2.png) | | ||
| :-- | | ||
| TAK Node example Flow 2: UDP Multicast from local network. | | ||
|
||
| ![TAK Node Example output](nodes/tak_node-example_flow1-debug.png) | | ||
| :-- | | ||
| TAK Node Example output. | | ||
|
||
| ![TAK Node Example Flow 3](nodes/tak_node-example_flow3.png) | | ||
| :-- | | ||
| TAK Node example Flow 3: MQTT out to UDP Multicast. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,28 @@ | ||
# Nodes | ||
|
||
## TAK Node | ||
|
||
| ![TAK Node](nodes/tak_node.png) | | ||
| :-------------------------------------------------------------------------------------------------------- | | ||
| ![TAK Node](nodes/tak_node.png) | | ||
| :-- | | ||
| The TAK Node allows TAK data in any format to be encoded, decoded and transformed between any TAK format. | | ||
|
||
| ![TAK Node Input](nodes/tak_node-input.png) | | ||
| :-------------------------------------------------------------------------- | | ||
| ![TAK Node Input](nodes/tak_node-input.png) | | ||
| :-- | | ||
| TAK Node input accepts CoT as a JavaScript Object (JSON), String or Buffer. | | ||
|
||
| ![TAK Node Output 1 (CoT XML or JSON)](nodes/tak_node-output1.png) | | ||
| :-------------------------------------------------------------------------- | | ||
| ![TAK Node Output 1 (CoT XML or JSON)](nodes/tak_node-output1.png) | | ||
| :-- | | ||
| TAK Node Output 1 returns either CoT as JSON or String, depending on Input. | | ||
|
||
| ![TAK Node Output 2 (Multicast Protobuf)](nodes/tak_node-output2.png) | | ||
| :-------------------------------------------------------------------------------------- | | ||
| ![TAK Node Output 2 (Multicast Protobuf)](nodes/tak_node-output2.png) | | ||
| :-- | | ||
| TAK Node Output 2 returns CoT as a TAK Protocol Version 1 Mesh encoded Protobuf Buffer. | | ||
|
||
| ![TAK Node Output 3 (Stream Protobuf)](nodes/tak_node-output3.png) | | ||
| :---------------------------------------------------------------------------------------- | | ||
| ![TAK Node Output 3 (Stream Protobuf)](nodes/tak_node-output3.png) | | ||
| :-- | | ||
| TAK Node Output 3 returns CoT as a TAK Protocol Version 1 Stream encoded Protobuf Buffer. | | ||
|
||
### Example Flows | ||
|
||
| ![TAK Node Example Flow 1](nodes/tak_node-example_flow1.png) | | ||
| :----------------------------------------------------------- | | ||
| TAK Node example Flow 1: TLS connection to a TAK Server. | | ||
|
||
| ![TAK Node Example Flow 2](nodes/tak_node-example_flow2.png) | | ||
| :----------------------------------------------------------- | | ||
| TAK Node example Flow 2: UDP Multicast from local network. | | ||
|
||
| ![TAK Node Example output](nodes/tak_node-example_flow1-debug.png) | | ||
| :----------------------------------------------------------------- | | ||
| TAK Node Example output. | | ||
|
||
| ![TAK Node Example Flow 3](nodes/tak_node-example_flow3.png) | | ||
| :----------------------------------------------------------- | | ||
| TAK Node example Flow 3: MQTT out to UDP Multicast. | | ||
|
||
## TAK2WorldMap Node | ||
|
||
| ![TAK2WorldMap Node](nodes/tak2wm_node.png) | | ||
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| ![TAK2WorldMap Node](nodes/tak2wm_node.png) | | ||
| :-- | | ||
| The TAK2WorldMap Node accepts Cot in any format and outputs Node-RED WorldMap ([RedMap](https://github.com/dceejay/RedMap)) JSON, ready for use by the Worldmap Node. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# TAK Server TLS | ||
|
||
|
||
TAK Server generate two formats of client certificates: | ||
|
||
1. PKCS 12 / PKCS#12 / P12 | ||
2. PEM | ||
|
||
Typically TAK Data Packages are distributed with PKCS#12 (.p12) files. | ||
|
||
Node-RED's TCP Nodes uses PEM formatted certificates (and keys). | ||
|
||
To use a Node-RED TCP Node with a TAK Server, you must export the certificate and keys from these PKCS#12 files into PEM files. | ||
|
||
## Converting from PKCS 12 (.p12) into PEM | ||
|
||
If you've been provided with PKCS 12 (.p12) formatted certificates you must first export them in PEM format. This is a two step process: | ||
|
||
### Step 1: Export the certificate as PEM | ||
|
||
``` | ||
openssl pkcs12 -clcerts -nokeys -in example.p12 -out example.cert.pem | ||
``` | ||
You should be prompted for an Import Password: | ||
``` | ||
Enter Import Password: | ||
``` | ||
If confirmed you should receive a MAC verification message: | ||
``` | ||
MAC verified OK | ||
``` | ||
|
||
### Step 2: Export the private key as PEM: | ||
|
||
``` | ||
openssl pkcs12 -nocerts -nodes -in example.p12 -out example.key.pem | ||
``` | ||
You should be prompted for an Import Password: | ||
``` | ||
Enter Import Password: | ||
``` | ||
If confirmed you should receive a MAC verification message: | ||
``` | ||
MAC verified OK | ||
``` | ||
|
||
### Pro-tip: Default TAK Server certificate passphrase | ||
|
||
Your Import Password is the certificate passphrase. All default installations of TAK Server use a common certificate passphrase. Consult your CoreConfig.xml (/opt/tak/CoreConfig.xml). | ||
|
||
## Importing TAK Server certificates into Node-RED | ||
|
||
Once PEM certificate and private key are in hand, open Node-RED and add a TCP (request, input or output) Node to your Flow: | ||
|
||
![TCP Request Node](tls/tcp-request.png) | ||
|
||
Open the Node Properties dialog. | ||
|
||
- Enter your server name or IP, port, and check **Enable secure (SSL/TLS) connection**. | ||
- Click the pencil icon to **Add new tls-config...**. | ||
|
||
![TCP Request Node Properties](tls/tcp-request-properties.png) | ||
|
||
- Click Certificate **Upload** to upload your PEM certificate file. | ||
- Click Private Key **Upload** to upload your PEM private key. | ||
- Enter your Private Key passphrase (if your private key is still encrypted). | ||
- Click **Add**. | ||
|
||
![tls-config Properties](tls/tls-config-properties.png) | ||
|
||
Click **Done**. | ||
|
||
![TCP Request Node Properties Filled](tls/tcp-request-properties-filled.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters