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

Updates before applying tuf to fulcio client #477

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

loosebazooka
Copy link
Member

  • iterate over collection types
  • allow appending to certpaths
  • managed channels from string targets
  • create trust roots directly on CA object
  • private key conversion

- iterate over collection types
- allow appending to certpaths
- managed channels from string targets
- create trust roots directly on CA object
- private key conversion

Signed-off-by: Appu Goundan <appu@google.com>
@@ -135,4 +136,16 @@ public static CertPath toCertPath(Certificate certificate) throws CertificateExc
CertificateFactory cf = CertificateFactory.getInstance("X.509");
return cf.generateCertPath(Collections.singletonList(certificate));
}

/** Appends an X509Certificate to a {@link CertPath} as a leaf. */
public static CertPath appendCertPath(CertPath root, Certificate certificate)
Copy link
Member Author

Choose a reason for hiding this comment

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

this is so we can recreate cert paths from provided certificates

* @param httpParams the http configuration
* @return a reusable grpc channel
*/
public static ManagedChannel newManagedChannel(String serverUrl, HttpParams httpParams) {
Copy link
Member Author

Choose a reason for hiding this comment

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

when we extract the "authority" from a uri (Strip the "http...") it returns a string, so we're going to greate managed channels with a string.

@loosebazooka loosebazooka merged commit d9ec7fe into main Aug 18, 2023
13 checks passed
@loosebazooka loosebazooka deleted the updates-to-trustroot branch August 18, 2023 17:10
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.

None yet

2 participants