Skip to content

Add support for SHA256-RSA-MGF1 #158

@Pe-te

Description

@Pe-te

Problem:

Our IDP is forcing us to switch to the following signing method,
but this method is not supported by the current goxmldsig library (Release v1.5.0):

http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1

The error message we saw was the following:

Unknown signature method: http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1


Hackaround:

We were able to get a working version that works in our case (simple login)
by adding these two lines of code in the xml_constants.go:

At line 49 add the signature method:

	SHA256RSAMGF1SignatureMethod = "http://www.w3.org/2007/05/xmldsig-more#sha256-rsa-MGF1"

At line 120 link the signature algorithm to the signature method:

	SHA256RSAMGF1SignatureMethod: x509.SHA256WithRSAPSS, 

Probably there are a hundred more places that need to be changed for a full PR,
but I thought I'll leave that snippet here in case someone runs into the same issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions