Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #537 from TheThingsNetwork/develop
Browse files Browse the repository at this point in the history
v2.6.0
  • Loading branch information
johanstokking authored Mar 23, 2017
2 parents a6a96eb + 0f5917c commit 1be93d7
Show file tree
Hide file tree
Showing 101 changed files with 4,349 additions and 2,255 deletions.
1 change: 1 addition & 0 deletions .env/broker/ca.cert
17 changes: 9 additions & 8 deletions .env/broker/server.cert
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBjjCCATSgAwIBAgIQFzR5quaK8FbcvukuVI94uDAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTYwNzI5MTIxMTU2WhcNMTcw
NzI5MTIxMTU2WjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
MIIBszCCAVmgAwIBAgIQdB+Af49pdScsT7qifQr/BzAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTcwMzA5MTkwNzAyWhcNMTgw
MzA5MTkwNzAyWjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAARKJiC1vanAuqbOtVYPwSM8D6oSseAOeUra5dHi
Xtp72d59+kgaEfa6Zgp0KSaes+D2fxE+RJ4G6v7DYbKgWOGto1YwVDAOBgNVHQ8B
Af8EBAMCAqQwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0TAQH/BAUwAwEB/zAc
BgNVHREEFTATgglsb2NhbGhvc3SCBmJyb2tlcjAKBggqhkjOPQQDAgNIADBFAiAU
fiL3mhXOFbG9T3QVv2lH7H58pnhdrJmIBN1n6qvDXgIhAPgpd2ZCkJ04GHQyTuoU
v75tKrSlLiJw62QdY+s93uSh
Xtp72d59+kgaEfa6Zgp0KSaes+D2fxE+RJ4G6v7DYbKgWOGto3sweTAOBgNVHQ8B
Af8EBAMCAqQwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA8GA1UdEwEB
/wQFMAMBAf8wNwYDVR0RBDAwLoIJbG9jYWxob3N0gglsb2NhbGhvc3SHBH8AAAGH
EAAAAAAAAAAAAAAAAAAAAAEwCgYIKoZIzj0EAwIDSAAwRQIhAO1tHZhOntbGCh1C
NUDGy2XbNF4XP2s/f5N3Rjz/hsvLAiA7WKRmVCu57WTcVEeDmmTHApglmmTmB73N
Bt+Gmd8yaQ==
-----END CERTIFICATE-----
1 change: 1 addition & 0 deletions .env/discovery/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ discovery-address: "localhost:1900"
auth-servers:
ttn-account-v2: "https://account.thethingsnetwork.org"
local: "file://.env/discovery/server.pub"
tls: true
key-dir: "./.env/discovery/"
discovery:
master-auth-servers:
Expand Down
11 changes: 11 additions & 0 deletions .env/discovery/server.cert
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-----BEGIN CERTIFICATE-----
MIIBqDCCAU6gAwIBAgIQaz96pn/63+3HrDdym3o44TAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTcwMzA5MTkwNzAyWhcNMTgw
MzA5MTkwNzAyWjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAAQZ3BU/el/lQZz4hJ2/NAb+oOPNtCJm5dV+WbIS
Q+RRIXHKo9G6mDMEhuwrFA4LyikZ1yftNxKoJR7LIJ3wkdR+o3AwbjAOBgNVHQ8B
Af8EBAMCAqQwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA8GA1UdEwEB
/wQFMAMBAf8wLAYDVR0RBCUwI4IJbG9jYWxob3N0hwR/AAABhxAAAAAAAAAAAAAA
AAAAAAABMAoGCCqGSM49BAMCA0gAMEUCIQCAzEFCWNstqZUdxnmk+kXMZSFwg3v9
L18WGBi7jj95DgIgY0QJWSdMU4BhZVGdCoW4Yq+awY2R1s9NC+nHsnL4tV0=
-----END CERTIFICATE-----
9 changes: 9 additions & 0 deletions .env/gencerts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

env=$(dirname $0)

for service in discovery router broker networkserver handler
do
# ttn $service gen-keypair --key-dir "$env/$service"
ttn $service gen-cert --key-dir "$env/$service" "localhost" "127.0.0.1" "::1"
done
1 change: 1 addition & 0 deletions .env/handler/ca.cert
19 changes: 10 additions & 9 deletions .env/handler/server.cert
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBkDCCATagAwIBAgIRANJJ3rP0cNrdrouE2GCkkaYwCgYIKoZIzj0EAwIwHTEb
MBkGA1UEChMSVGhlIFRoaW5ncyBOZXR3b3JrMB4XDTE2MDcyOTEyMTIwNloXDTE3
MDcyOTEyMTIwNlowHTEbMBkGA1UEChMSVGhlIFRoaW5ncyBOZXR3b3JrMFkwEwYH
KoZIzj0CAQYIKoZIzj0DAQcDQgAEiXbWvyYjOMP4ebTYtVvdIsBwS+U3laWltR7V
ox4+kQWcGLLEg+suI9SRZyKK+frhw9JPKbVNIgEv/S50YKfMEaNXMFUwDgYDVR0P
AQH/BAQDAgKkMBMGA1UdJQQMMAoGCCsGAQUFBwMBMA8GA1UdEwEB/wQFMAMBAf8w
HQYDVR0RBBYwFIIJbG9jYWxob3N0ggdoYW5kbGVyMAoGCCqGSM49BAMCA0gAMEUC
IQDbNJPUIfKZ/1CkTF3+ukl64l3fn613hnMiqAJYO7yz7QIgTAwlr3vkLquSQZUO
yraf7CGvuvulKs4S8sd8im6Bdgs=
MIIBszCCAVmgAwIBAgIQcrThDOgGdbi+Yz4obDgN5zAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTcwMzA5MTkwNzAyWhcNMTgw
MzA5MTkwNzAyWjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAASJdta/JiM4w/h5tNi1W90iwHBL5TeVpaW1HtWj
Hj6RBZwYssSD6y4j1JFnIor5+uHD0k8ptU0iAS/9LnRgp8wRo3sweTAOBgNVHQ8B
Af8EBAMCAqQwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA8GA1UdEwEB
/wQFMAMBAf8wNwYDVR0RBDAwLoIJbG9jYWxob3N0gglsb2NhbGhvc3SHBH8AAAGH
EAAAAAAAAAAAAAAAAAAAAAEwCgYIKoZIzj0EAwIDSAAwRQIhAKyfSZf1tXd1/PeE
vwpltxjtTsHtHrTaOHcz/RENVdKYAiBZRmpzDQbbEStFKhNubYDfv/HIh74RPoUU
y5j6P1kTTg==
-----END CERTIFICATE-----
19 changes: 10 additions & 9 deletions .env/networkserver/server.cert
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBljCCATygAwIBAgIRAOs3B7qZNgejMf+laNHTRuYwCgYIKoZIzj0EAwIwHTEb
MBkGA1UEChMSVGhlIFRoaW5ncyBOZXR3b3JrMB4XDTE2MDcyOTEyMTIxNVoXDTE3
MDcyOTEyMTIxNVowHTEbMBkGA1UEChMSVGhlIFRoaW5ncyBOZXR3b3JrMFkwEwYH
KoZIzj0CAQYIKoZIzj0DAQcDQgAEsfIDb4Va9ocbwGuc375Bxw5ICTCXZ60mbgdx
3JSyWm19DW5dihzPFrB0Ezu+lak91rTEaon9WNcVibhFNG5wMqNdMFswDgYDVR0P
AQH/BAQDAgKkMBMGA1UdJQQMMAoGCCsGAQUFBwMBMA8GA1UdEwEB/wQFMAMBAf8w
IwYDVR0RBBwwGoIJbG9jYWxob3N0gg1uZXR3b3Jrc2VydmVyMAoGCCqGSM49BAMC
A0gAMEUCIBrRl5a2PX+fn68Uefq15Cn1C1XE6NGVmI+HvmP1sA1JAiEA0L4WgKdo
HcUc8PnKlUUgN9nLVx98W9Sb2TvOaldspVE=
MIIBszCCAVmgAwIBAgIQDU92ZmhSjs5+l/Hh53oA0DAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTcwMzA5MTkwNzAyWhcNMTgw
MzA5MTkwNzAyWjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAASx8gNvhVr2hxvAa5zfvkHHDkgJMJdnrSZuB3Hc
lLJabX0Nbl2KHM8WsHQTO76VqT3WtMRqif1Y1xWJuEU0bnAyo3sweTAOBgNVHQ8B
Af8EBAMCAqQwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA8GA1UdEwEB
/wQFMAMBAf8wNwYDVR0RBDAwLoIJbG9jYWxob3N0gglsb2NhbGhvc3SHBH8AAAGH
EAAAAAAAAAAAAAAAAAAAAAEwCgYIKoZIzj0EAwIDSAAwRQIhAKl5ksLQouswffPg
uW1TjDcBNAv0icKXc5uGThz6lv9LAiAJAcpAzY1FUqNGYIqF+3W7AnzWjiF7SVfM
NQthfc/8LQ==
-----END CERTIFICATE-----
1 change: 1 addition & 0 deletions .env/router/ca.cert
17 changes: 9 additions & 8 deletions .env/router/server.cert
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
-----BEGIN CERTIFICATE-----
MIIBjjCCATSgAwIBAgIQS/57LijDDb+PB9+WltoR1DAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTYwNzI5MTIxMTQ2WhcNMTcw
NzI5MTIxMTQ2WjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
MIIBszCCAVmgAwIBAgIQDqPxNkrxxJN7VEA7IwQVWzAKBggqhkjOPQQDAjAdMRsw
GQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswHhcNMTcwMzA5MTkwNzAyWhcNMTgw
MzA5MTkwNzAyWjAdMRswGQYDVQQKExJUaGUgVGhpbmdzIE5ldHdvcmswWTATBgcq
hkjOPQIBBggqhkjOPQMBBwNCAAQrcb9XbpbPrXWn8Qh8kRNxzt+Y3BpxyVgRkeST
30VcppXAv83B64oqklFFTr9BmOSsSXY1iKxcDUV+25TEkuCro1YwVDAOBgNVHQ8B
Af8EBAMCAqQwEwYDVR0lBAwwCgYIKwYBBQUHAwEwDwYDVR0TAQH/BAUwAwEB/zAc
BgNVHREEFTATgglsb2NhbGhvc3SCBnJvdXRlcjAKBggqhkjOPQQDAgNIADBFAiEA
sI4vft9oNO2iT5The9qOzgnM5UxIc/XPrQhpKMgELTwCIFn9pkIsZ0jeeb99uBdS
4MhSRxk4jgkBaWDPjCznaHVm
30VcppXAv83B64oqklFFTr9BmOSsSXY1iKxcDUV+25TEkuCro3sweTAOBgNVHQ8B
Af8EBAMCAqQwHQYDVR0lBBYwFAYIKwYBBQUHAwEGCCsGAQUFBwMCMA8GA1UdEwEB
/wQFMAMBAf8wNwYDVR0RBDAwLoIJbG9jYWxob3N0gglsb2NhbGhvc3SHBH8AAAGH
EAAAAAAAAAAAAAAAAAAAAAEwCgYIKoZIzj0EAwIDSAAwRQIgQYkT8K9tgFCgNinA
FKsH1wD3SnISi59MHHwciOVvl5wCIQDlWvtf9tGDZjdfWIBLZkQDz+a15WOD0yAE
1jNJNybDAQ==
-----END CERTIFICATE-----
4 changes: 0 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ services:
go:
- 1.8

cache:
directories:
- vendor

install:
- make deps
- make cover-deps
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ COMPILED_PROTO_FILES = $(patsubst api%.proto, api%.pb.go, $(PROTO_FILES))
PROTOC_IMPORTS= -I/usr/local/include -I$(GO_PATH)/src -I$(PARENT_DIRECTORY) \
-I$(GO_PATH)/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
PROTOC = protoc $(PROTOC_IMPORTS) \
--gogofast_out=Mgoogle/api/annotations.proto=github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis/google/api,plugins=grpc:$(GO_SRC) \
--gogofast_out=plugins=grpc:$(GO_SRC) \
--grpc-gateway_out=:$(GO_SRC) `pwd`/

protos-clean:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ When you get started with The Things Network, you'll probably have some question
7. Run `make dev` to install the go binaries into `$GOPATH/bin/`
* Optionally on Linux or Mac you can use `make link` to link them to `$GOPATH/bin/` (In order to run the commands, you should have `export PATH="$GOPATH/bin:$PATH"` in your profile).
8. Configure your `ttnctl` with the settings in `.env/ttnctl.yml.dev-example` by copying that file to `~/.ttnctl.yml`.
9. Trust the CA certificate of your local discovery server by copying `.env/discovery/server.cert` to `~/.ttnctl/ca.cert`.

You can check your `ttnctl` configuration by running `ttnctl config`. It should look like this:

Expand Down
2 changes: 1 addition & 1 deletion api/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1be93d7

Please sign in to comment.