New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not run the synopsis example: Missing child element(s). #255
Comments
It looks like you are not running the synopsis but something else that you wrote. The specific reason this is failing is that you're passing a CSR stripped of its PEM header instead of a certificate. Pass a full PEM certificate, including the header. You have however uncovered a corner case where SignXML produces an invalid signature when an invalid certificate is passed along with a valid key. I've added an error message for this case; it will be released with the next release. |
The error still appears when running the synopsis example without modifying the headers of the CSR, if the part
Relating to child elements, I would like the certificate to be the last child element of the root instead of being the first, some formats require this. Is this possible? |
An error appears when attempting to generate the keys according to the documentation.
However, this is not the preferred method to create the keys as I am using the cryptography library for the task. In the following I run the standard code from cryptography library to generate the key and certificate, then attempting to sign them according to the synopsis example.
I receive the following error.
The text was updated successfully, but these errors were encountered: