I'm working on creating a Service Provide for an SSO. I already have the whole system up and running, but the only thing I have left to do is to verify the response we get using the certificate provided by the Identity Provider.
What I have:
- a certifcate (namewhere.pfx)
- a password (a small string)
- xml response (decoded and parsed)
What I'm using:
- php
What I need:
- to verify the xml response
I've been googling alot and have figured that it was possible if I had a certificate in .pem format. For that I googled up and found a few Linux commands. But I'm unsure how to go about it. How do I use those commands in my php code and have the created files available, or do I simply create the .pem file once and store that online? If so, where do I place them to avoid security problems, etc.