Code Monkey home page Code Monkey logo

Comments (9)

mehcode avatar mehcode commented on July 28, 2024

You'd have to poke around xmlsec itself. This library is just a small wrapper around the C library.

from python-xmlsec.

bgaifullin avatar bgaifullin commented on July 28, 2024

Hi. I think the following code should help.
signature_node = xmlsec.template.create(root_node, xmlsec.Transform.EXCL_C14N, xmlsec.Transform.RSA_SHA1) xmlsec.template. add_x509_data (xmlsec.template. ensure_key_info(signature_node))
more information about xmlsec.templates can be found here:
https://www.aleksey.com/xmlsec/api/xmlsec-templates.html#XMLSECTMPLKEYINFOADDKEYNAME

from python-xmlsec.

mehcode avatar mehcode commented on July 28, 2024

@bgaifullin You have proved time and again that you know way more about xmlsec than I do. You're now a collaborator. Take it as you will.

from python-xmlsec.

pitbulk avatar pitbulk commented on July 28, 2024

๐Ÿ‘ congrats @bgaifullin

from python-xmlsec.

bgaifullin avatar bgaifullin commented on July 28, 2024

thank you.

from python-xmlsec.

bgaifullin avatar bgaifullin commented on July 28, 2024

@nareshenoy, Do you still need help?

from python-xmlsec.

fedexin40 avatar fedexin40 commented on July 28, 2024

Hello @bgaifullin we are having same issue right now. We tried using your suggestion but unfortunately:

xmlsec.template.add_x509_data(xmlsec.template. ensure_key_info(signature_node)) 

just adds the X509Certificate node and we also need the X509IssuerSerial, we found this template on xmlsec https://www.aleksey.com/xmlsec/api/xmlsec-templates.html#XMLSECTMPLX509DATAADDISSUERSERIAL but unfortunately seems its not currenty supported by python-xmlsec

from python-xmlsec.

bgaifullin avatar bgaifullin commented on July 28, 2024

I will see how to this method to python-xmlsec

from python-xmlsec.

bgaifullin avatar bgaifullin commented on July 28, 2024

Now, xmlsec has methods to add issuer_serial and issuer_subject_name.
You can find details in documentation

from python-xmlsec.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.