Skip to content

Conversation

@rjrudin
Copy link
Contributor

@rjrudin rjrudin commented Jun 13, 2023

Figured out the plumbing for doing this with the Manage API, figured I should document it via a test here.

@rjrudin rjrudin requested a review from BillFarber June 13, 2023 19:56
CertificateTemplateManager mgr = new CertificateTemplateManager(Common.newManageClient());

Fragment response = mgr.getCertificatesForTemplate(TEMPLATE_NAME);
String cert = response.getElementValue("/msec:certificate-list/msec:certificate/msec:pem");
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BillFarber Could reproduce this in mlxprs if needed, though I don't know how to make a certificate / trust manager in Node or what the equivalent is. But this is the key part - after generating a temporary certificate, you can download it and get the pem via the above code.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been thinking that we need to add a test or two to exercise certs, but I haven't written any stories for it.

@rjrudin rjrudin merged commit 2475274 into develop Jun 20, 2023
@rjrudin rjrudin deleted the feature/ssl-test branch June 20, 2023 17:26
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

Successfully merging this pull request may close these issues.

3 participants