-
Notifications
You must be signed in to change notification settings - Fork 12
feat: configure LDP server with certificate + some cleanup #72
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, other than the outstanding certificate discussions, this looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good to me overall. Just the question of binary cert data (which you have in progress) and the configuration of the port.
Co-authored-by: moorejacqueline <93947656+moorejacqueline@users.noreply.github.com>
Co-authored-by: moorejacqueline <93947656+moorejacqueline@users.noreply.github.com>
src/shared/previewUtils.ts
Outdated
// If we have not previously generated the cert files then go ahead and do so | ||
if (!fs.existsSync(targetFile)) { | ||
if (platform === Platform.ios) { | ||
fs.writeFileSync(targetFile, data.derCertificate, { encoding: 'binary' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So here I'd drop the options specifying encoding, because that's an inherently textual configuration, and doesn't apply to a raw Buffer
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the minor comment around saving the DER file, but otherwise this looks good to me!
What does this PR do?
What issues does this PR fix or reference?
@W-15906501@