Home » Eclipse Projects » Eclipse Titan » OPC-UA Module compilation Error
| | | | | | | | |
Re: OPC-UA Module compilation Error [message #1781894 is a reply to message #1781815] |
Wed, 14 February 2018 11:14 |
|
Hi Avdoot,
the binary encoding has been summarily tested against an open source server,
so I suppose you can do the same, except the transport security/encryption part.
I suggest you download yourself a freely available sever and start experimenting with it.
There's no documentation besides what has been published in the repo.
Best regards
Elemer
|
|
|
Re: OPC-UA Module "The security mode does not meet the requirements set by the Server" [message #1790253 is a reply to message #1781894] |
Thu, 07 June 2018 13:46 |
Avdoot Chalke Messages: 21 Registered: April 2017 |
Junior Member |
|
|
Hi Elemer,
I get the following error while trying to send an opensecurechannel request using mode SIGN_2:-
BadSecurityPolicyRejected = 0x80550000.
My message format is as follows:
var MessageHeader v_header := valueof(tr_HeaderOpenSecureChannel);
var UInt32 v_securityChannelId := 0;
var ListOfByte v_securePolicyUri := valueof(tr_ListOfByte({ 104, 116, 116, 112, 58, 47, 47, 111, 112, 99, 102, 111, 117, 110, 100, 97, 116, 105, 111, 110, 46, 111, 114, 103, 47, 85, 65, 47, 83, 101, 99, 117, 114, 105, 116, 121, 80, 111, 108, 105, 99, 121, 35, 78, 111, 110, 101 }));
var ListOfByte v_senderCertificate := valueof(tr_ListOfByteNull);
var ListOfByte v_receiverCertificateThumbprint := valueof(tr_ListOfByteNull);
var SequenceHeader v_sequenceHeader := {
SequenceNumber := 1,
RequestId := 1
}
var OpenSecureChannelRequest v_openSecReq := {
requestHeader := reqHeader,
clientProtocolVersion := 0,
requestType := v_requestType,
securityMode := v_securityMode,
securityPolicyUri := { realString := { stringLength := 56, stringValue := "http://opcfoundation.org/UA/SecurityPolicy#Basic128Rsa15" } },
clientNonce := v_clientNonce,
requestedLifetime := 1200000
}
var ServiceBody v_service := {
encodingByte := 1,
namespaceIndex := 0,
nodeValue := 0,
list := {
OpenSecureChannelRequest := v_openSecReq
}
}
I am not able to find any source of information on senderCertificate, receiverCertificateThumbprint. What can be the problem?
Any information provided will be helpful.
With Regards,
Avdoot Chalke
[Updated on: Thu, 07 June 2018 14:39] Report message to a moderator
|
|
| |
Re: OPC-UA Module "The security mode does not meet the requirements set by the Server" [message #1790308 is a reply to message #1790260] |
Fri, 08 June 2018 08:16 |
|
Hi Avdoot,
I asked Akos about his opinion;
He is saying that :
-either the server does not support this security mode
-or the message is wrongly assembled
Pls. find attached a correct message for reference.
{ header := {
messageType := 5132367,
chunkType := 70,
messageSize := 132
},
transportMessage := omit,
securityChannelId := 0,
securePolicyUri := {
realArray := {
arrayLength := 47,
arrayValues := { 104, 116, 116, 112, 58, 47, 47, 111, 112, 99, 102, 111, 117, 110, 100, 97, 116, 105, 111, 110, 46, 111, 114, 103, 47, 85, 65, 47, 83, 101, 99, 117, 114, 105, 116, 121, 80, 111, 108, 105, 99, 121, 35, 78, 111, 110, 101}
}
},
senderCertificate := {
nullArray := {
arrayLength := -2147483647
}
},
receiverCertificateThumbprint := {
nullArray := {
arrayLength := -2147483647
}
},
securityTokenId := omit,
sequenceHeader := {
SequenceNumber := 1,
RequestId := 1
},
body := '0100BE010000D08F18E2A674D3010100000000000000FFFFFFFF00000000000000000000000000000001000000FFFFFFFFC0270900'O } //The body structure below as an ecoded message
//Body
{
encodingByte := 1,
namespaceIndex := 0,
nodeValue := 446,
list := {
OpenSecureChannelRequest := {
requestHeader := {
authenticationToken := {
mask := 0,
namespaceUriBit := 0,
serverIndexBit := 0,
reservedBit1 := 0,
reservedBit2 := 0,
IdType := {
twoByte := {
nodeValue := 0
}
}
},
timestamp := 131577074230530000,
requestHandle := 1,
returnDiagnostics := 0,
auditEntryId := {
nullString := {
arrayLength := -2147483647
}
},
timeoutHint := 0,
additionalHeader := {
typeId := {
node := {
mask := 0,
namespaceUriBit := 0,
serverIndexBit := 0,
reservedBit1 := 0,
reservedBit2 := 0,
IdType := {
twoByte := {
nodeValue := 0
}
}
},
namespaceUri := omit,
serverIndex := omit
},
Value := 0
}
},
clientProtocolVersion := 0,
requestType := ISSUE_0 (0),
securityMode := NONE_1 (1),
clientNonce := {
nullByteString := {
arrayLength := -2147483647
}
},
requestedLifetime := 600000
}
}
}
BR
Elemer
|
|
| | | |
Re: OPC-UA Module "The security mode does not meet the requirements set by the Server" [message #1790595 is a reply to message #1790574] |
Wed, 13 June 2018 10:55 |
|
Hi Avdoot,
aha, yes , sorry;
indeed , the security and certificate functions are not implemented yet, but if you generate the appropriate data by some other means and insert it into the message, then
the codecs will handle it properly.
Our intention was , and still is, to add this functionality , but we are rather strained at the moment.
Best regards
Elemer
|
|
|
Goto Forum:
Current Time: Thu Sep 26 05:34:31 GMT 2024
Powered by FUDForum. Page generated in 0.04252 seconds
|