-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] DTLS Implementation #122
Open
m4n3dw0lf
wants to merge
7
commits into
telefonicaid:master
Choose a base branch
from
m4n3dw0lf:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d55d3bf
Trying to implement dtls, handling shrinkwrap errors.
m4n3dw0lf 23ef8b2
Trying to implement dtls, handling shrinkwrap errors.
m4n3dw0lf 745c952
reverting package.json
m4n3dw0lf e12ab10
adding prototype libs.
m4n3dw0lf 56aeb3c
removing shrinkwrap to test the PoC.
m4n3dw0lf 8b0e8a5
Changing Dockerfile to use config-secure.js
m4n3dw0lf 6646472
Removing static configuration.
m4n3dw0lf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,83 @@ | ||
/* | ||
* Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U | ||
* | ||
* This file is part of fiware-iotagent-lib | ||
* | ||
* fiware-iotagent-lib is free software: you can redistribute it and/or | ||
* modify it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the License, | ||
* or (at your option) any later version. | ||
* | ||
* fiware-iotagent-lib is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public | ||
* License along with fiware-iotagent-lib. | ||
* If not, seehttp://www.gnu.org/licenses/. | ||
* | ||
* For those usages not covered by the GNU Affero General Public License | ||
* please contact with::[[email protected]] | ||
*/ | ||
|
||
var config = {}; | ||
|
||
config.lwm2m = { | ||
logLevel: 'DEBUG', | ||
port: 5683, | ||
dtls: { | ||
port: 5684, | ||
cert: "cert.crt", | ||
key: "cert.key" | ||
}, | ||
defaultType: 'Device', | ||
ipProtocol: 'udp4', | ||
serverProtocol: 'udp4', | ||
formats: [ | ||
{ | ||
name: 'application-vnd-oma-lwm2m/text', | ||
value: 1541 | ||
}, | ||
{ | ||
name: 'application-vnd-oma-lwm2m/tlv', | ||
value: 1542 | ||
}, | ||
{ | ||
name: 'application-vnd-oma-lwm2m/json', | ||
value: 1543 | ||
}, | ||
{ | ||
name: 'application-vnd-oma-lwm2m/opaque', | ||
value: 1544 | ||
} | ||
], | ||
writeFormat: 'application-vnd-oma-lwm2m/text', | ||
types: [ ] | ||
}; | ||
|
||
config.ngsi = { | ||
logLevel: 'DEBUG', | ||
contextBroker: { | ||
host: 'localhost', | ||
port: '1026', | ||
protocol: 'https', | ||
verify: false | ||
}, | ||
server: { | ||
port: 4041, | ||
tls: { | ||
key: "cert.key", | ||
crt: "cert.crt" | ||
} | ||
}, | ||
deviceRegistry: { | ||
type: 'memory' | ||
}, | ||
types: { }, | ||
providerUrl: 'https://localhost:4041', | ||
deviceRegistrationDuration: 'P1M' | ||
}; | ||
|
||
module.exports = config; | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add an entry in CHANGES_NEXT_RELEASE about the changes included in this PR, eg:
where
#xx
is an issue number, if we have some one for DTLS implementation in this repository.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(y)