Skip to content

Added test for a custom X509TrustManager #1570

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

Merged
merged 1 commit into from
Jun 20, 2023
Merged

Added test for a custom X509TrustManager #1570

merged 1 commit into from
Jun 20, 2023

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.

2 participants