etobella / python-xades

Xades Signature for Python
GNU Lesser General Public License v3.0
32 stars 27 forks source link

How to implement certificate chains #6

Closed blaggacao closed 5 years ago

blaggacao commented 5 years ago

Some policies require to include the complete chain up to the trusted root CA. Currently there is a stub method policy.calculate_certificateS but no concrete implementation.

Bascially, I see two options:

The latter would require some plumbing in order to be able to load the certificates and hide the cryptography interface. I don't favor this idea too much.

The former would preserve the pure cryptography interface.

@etobella Is there any use case or argument why the latter should be favored? - Are you ok with me going for a cert list implementation in?