Skip to content
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

implement API for certificate generation #65

Closed
simevo opened this issue Oct 19, 2018 · 1 comment
Closed

implement API for certificate generation #65

simevo opened this issue Oct 19, 2018 · 1 comment

Comments

@simevo
Copy link
Collaborator

simevo commented Oct 19, 2018

this is required by all CMS plugins / framework bundles if they want to be dynamically configurable and do without a preconfguration step on the command line, see for example: simevo/spid-wordpress#22

two new public member functions are required in the Italia\Spid\Sp class:

  • isConfigured() returns true if the SP certificates are found where the $settings says they are, and they are valid (i.e. the plugin has been configured correctly)
  • generateCerts($ountryName, stateName, localityName, commonName, emailAddress): generates with openssl the certificates where the $settings says they should be (assuming the user which the wenservice is impersonating has write access to that directory)
@simevo
Copy link
Collaborator Author

simevo commented Oct 20, 2018

see PR #66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant