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

feat: fetch local certificate root [WPB-3338] #5863

Merged
merged 7 commits into from
Jan 19, 2024

Conversation

PatrykBuniX
Copy link
Contributor

@PatrykBuniX PatrykBuniX commented Jan 12, 2024

Before the first enrolment, we need to fetch the local root certificate and pass it to core-crypto for it to be validated.

This should be done only once.

};

constructor(private discoveryUrl: string) {}

private get acmeBaseUrl() {
const hostname = new URL(this.discoveryUrl).hostname;
return `https://${hostname}`;
Copy link
Member

Choose a reason for hiding this comment

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

You can get the protocol from
The url as well

@PatrykBuniX PatrykBuniX force-pushed the feat/WPB-3338-fetch-local-root-cert branch from 2dc2168 to 4913bb2 Compare January 16, 2024 15:29
@PatrykBuniX PatrykBuniX force-pushed the feat/WPB-3338-fetch-local-root-cert branch from 3b4094c to d69feb6 Compare January 18, 2024 14:02
@PatrykBuniX PatrykBuniX marked this pull request as ready for review January 19, 2024 09:18
@PatrykBuniX PatrykBuniX merged commit 47d45de into main Jan 19, 2024
7 checks passed
@PatrykBuniX PatrykBuniX deleted the feat/WPB-3338-fetch-local-root-cert branch January 19, 2024 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants