#8 XML Signatures of messages

Đã đóng
%! (template.HTML=4 năm trước cách đây)đang mở bởi stan · 3 ý kiến

In order to add XML Signatures to the messages, the following conditions must be met:

  1. XML messages should be converted to their C14n canonical form. Given that openADR does not use any advanced XML features, I propose that we canonicalize the form in the templates as much as possible.
  2. Add an identifier like id="signedObject" to the opening tag of the oadrSignedObject resource
  3. Add a new resource that contains a ReplayProtect property with the current timestamp and a random nonce
  4. Calculate the digest of the resource signedObject
  5. Calculate the digest of the resource prop that contains the ReplayProtect element
  6. Calculate the signature value, which is the digest value signed by the private key
  7. Add the key info, which is the public key
  8. Prepend the <Signature> element to the contents of <oadrPayload>
In order to add XML Signatures to the messages, the following conditions must be met: 1. XML messages should be converted to their C14n canonical form. Given that openADR does not use any advanced XML features, I propose that we canonicalize the form in the templates as much as possible. 2. Add an identifier like `id="signedObject"` to the opening tag of the oadrSignedObject resource 3. Add a new resource that contains a ReplayProtect property with the current timestamp and a random nonce 4. Calculate the digest of the resource `signedObject` 5. Calculate the digest of the resource `prop` that contains the ReplayProtect element 6. Calculate the signature value, which is the digest value signed by the private key 7. Add the key info, which is the public key 8. Prepend the `<Signature>` element to the contents of `<oadrPayload>`
Stan Janssen đã nhận xét 4 năm trước cách đây
Chủ sở hữu

The canonicalized XML form represents empty tags as an explicite open and close tag, whereas we were using the compact respresentation of those tags:

<venID />

should become

<venID></venID>
The canonicalized XML form represents empty tags as an explicite open and close tag, whereas we were using the compact respresentation of those tags: ```XML <venID /> ``` should become ```XML <venID></venID> ```
Stan Janssen đã nhận xét 4 năm trước cách đây
Chủ sở hữu

I will use xml.etree.ElementTree.canonicalize just before sending each message to canonicalize everything.

I will use `xml.etree.ElementTree.canonicalize` just before sending each message to canonicalize everything.
Stan Janssen đã nhận xét 4 năm trước cách đây
Chủ sở hữu

This is closed in 4ba2900cc1.

This is closed in 4ba2900cc1.
Đăng nhập để tham gia bình luận.
Không có nhãn
Không có Milestone
Không có người được phân công
1 tham gia
Đang tải...
Hủy bỏ
Lưu
Ở đây vẫn chưa có nội dung nào.