Hi list,
I'm getting a DTLS decrypt failure on the server side:
Oct 13 13:17:17 DEBG dtls_handle_message: FOUND PEER
Oct 13 13:17:17 DEBG got packet 22 (53 bytes)
Oct 13 13:17:17 DEBG nonce: (16 bytes): 6DBF47D4000100000000000000000000
Oct 13 13:17:17 DEBG key: (16 bytes): 2988529E80D4DB30E4DCC68F940DC1C2
Oct 13 13:17:17 DEBG ciphertext: (32 bytes):
A15474ABBA7D2F1BC647C6034181CE7892651AAADACE1F296A085DADE99F3BF2
Oct 13 13:17:17 WARN decryption failed
Oct 13 13:17:17 INFO decrypt_verify() failed
What could cause this? I'm using static config files for both client and
server, could that be the problem? I don't fully understand the semantics
of the config files so I just hacked them together from other sample code.
client:
...
"doxm": {
"oxms": [0],
"oxmsel": 0,
"sct": 1,
"owned": true,
"deviceuuid": "CCCCCCCC-CCCC-CCCC-CCCC-010101010101",
"devowneruuid": "CCCCCCCC-CCCC-CCCC-CCCC-010101010101",
"rowneruuid": "CCCCCCCC-CCCC-CCCC-CCCC-010101010101",
"x.org.iotivity.dpc": false
},
"cred": {
"creds": [
{
"credid": 1,
"subjectuuid": "00000000-0000-0000-0000-111111111111",
"credtype": 1,
"period": "20150630T060000/20990920T220000",
"privatedata": {
"data": "AAAAAAAAAAAAAAAA",
"encoding": "oic.sec.encoding.raw"
}
},
{
"credid": 2,
"subjectuuid": "CCCCCCCC-CCCC-CCCC-CCCC-010101010101",
"credtype": 1,
"privatedata": {
"data": "BBBBBBBBBBBBBBBB",
"encoding": "oic.sec.encoding.raw"
}
}
],
"rowneruuid": "CCCCCCCC-CCCC-CCCC-CCCC-010101010102"
}
server:
....
"doxm": {
"oxms": [0],
"oxmsel": 0,
"sct": 1,
"owned": true,
"deviceuuid": "00000000-0000-0000-0000-111111111111",
"devowneruuid": "CCCCCCCC-CCCC-CCCC-CCCC-010101010101",
"rowneruuid": "00000000-0000-0000-0000-111111111111",
"x.org.iotivity.dpc": false
},
"cred": {
"creds": [
{
"credid": 1,
"subjectuuid": "00000000-0000-0000-0000-111111111111",
"credtype": 1,
"period": "20150630T060000/20990920T220000",
"privatedata": {
"data": "AAAAAAAAAAAAAAAA",
"encoding": "oic.sec.encoding.raw"
}
},
{
"credid": 2,
"subjectuuid": "CCCCCCCC-CCCC-CCCC-CCCC-010101010101",
"credtype": 1,
"privatedata": {
"data": "BBBBBBBBBBBBBBBB",
"encoding": "oic.sec.encoding.raw"
}
}
],
"rowneruuid" : "00000000-0000-0000-0000-111111111111"
}
Any help appreciated.
-Gregg
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20161013/b2608064/attachment.html>