Skip to content

Instantly share code, notes, and snippets.

@mrajashree
Last active May 9, 2017 19:00
Show Gist options
  • Save mrajashree/7d84d2a0a93dff0feaa36f5eff1c34fc to your computer and use it in GitHub Desktop.
Save mrajashree/7d84d2a0a93dff0feaa36f5eff1c34fc to your computer and use it in GitHub Desktop.
InvalidXMLException -> NameIDPolicy struct tag
ProtocolBinding -> Add to AuthnRequest
asn1 error: tags don't match -> x509.ParsePKCS1PrivateKey expects RSA private key. Meaning in place of key with:
-----BEGIN PRIVATE KEY-----
it should have
-----BEGIN RSA PRIVATE KEY-----
To convert your private key to RSA private key use this
`command -> openssl rsa -in server.key -out server_new.key`
If key was generated with this command:
`openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment