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

Automatically generate temp certificate #658

Open
rjrudin opened this issue May 18, 2023 · 2 comments
Open

Automatically generate temp certificate #658

rjrudin opened this issue May 18, 2023 · 2 comments

Comments

@rjrudin
Copy link
Contributor

rjrudin commented May 18, 2023

The code in the build.gradle file for the ssl-project shows how to generate a temp certificate. It's not easy to know this is required. And the Admin UI magically "fixes" this by automatically generating a temp certificate when the app server is saved, even without any changes.

Arguably, the Manage API should be doing the same thing. In the absence of that, I think ml-gradle should either do this automatically, or it should support a property to allow a user to easily do this - e.g. mlGenerateTempCertificate-templateId1,host1,templateId2,host2,etc.

@rjrudin
Copy link
Contributor Author

rjrudin commented Aug 14, 2023

This may be better represented as a new resource file - e.g. ml-config/security/temp-certificates, where a JSON file captures the inputs supported by https://docs.marklogic.com/REST/POST/manage/v2/certificate-templates/[id-or-name]#generateTC .

@BillFarber
Copy link
Contributor

+1

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

2 participants