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

generate key pair and publish the public part #99

Open
michielbdejong opened this issue Feb 8, 2022 · 1 comment
Open

generate key pair and publish the public part #99

michielbdejong opened this issue Feb 8, 2022 · 1 comment

Comments

@michielbdejong
Copy link
Member

michielbdejong commented Feb 8, 2022

On first use, a keypair should be generated and both the private and the public part needs to be stored, either in a folder on Nextcloud or in the app settings, whatever you think makes most sense.
The public part needs to be made public on a URL, for instance
https://example-nextcloud-server.com/index.php/apps/peppol/well-known/public-key.txt
And then we set a rewrite rule so that it also becomes available at a well-known URL we choose, for instance:
https://example-nextcloud-server.com/.well-known/as4-direct

This same well-known URL will then be used in #97.

@michielbdejong
Copy link
Member Author

@br0kk0l1 can you provide a snippet of PHP code that calls openssl to do the key generation?

@navid-dada can you integrate this in the app so that it gets called on first use?

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