laravel-saml2 icon indicating copy to clipboard operation
laravel-saml2 copied to clipboard

Load private keys and certificates from file (in openssl format)

Open peetersdiet opened this issue 8 years ago • 2 comments

In our codebase I have added some code to load private keys and certificates from key- and certificatefiles. The files have to be in openssl format.

Supported configuration options:

  • $config['sp']['x509cert']
  • $config['sp']['privateKey']
  • $config['idp']['x509cert']

The change adds a dependency to openssl to the codebase, but this is also a requirement for the Onelogin toolkit, so I see no BC breaks.

@aacotroneo If you're interested, I can push these changes to the laravel-saml2 codebase.

peetersdiet avatar Oct 27 '16 11:10 peetersdiet

hi peetersdiet, i'm interested by your code, can you share it ? i need to use certificates to encrypt requests between my sp and the idp thanks

eric-nodes avatar Jun 15 '17 08:06 eric-nodes

@eric-nodes Forgot about your question. I'll put together a pull request. If you still need it, you can merge the changes from my branch, if you can't wait for the pull request to be approved.

[edit] see PR #104 for the code

peetersdiet avatar Aug 10 '17 08:08 peetersdiet