-
Notifications
You must be signed in to change notification settings - Fork 30
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: persist and reuse generated https certificates #136
base: main
Are you sure you want to change the base?
Conversation
417412b
to
542cdaf
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #136 +/- ##
==========================================
+ Coverage 49.42% 50.48% +1.06%
==========================================
Files 17 17
Lines 1819 1844 +25
Branches 147 148 +1
==========================================
+ Hits 899 931 +32
+ Misses 915 908 -7
Partials 5 5 β View full report in Codecov by Sentry. |
src/_cert.ts
Outdated
const key = await fs.readFile(certificateDirectory + "cert-key.pem"); | ||
return { | ||
cert: cert.toString("utf8"), | ||
key: key.toString("utf8"), |
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 we could perform both keys in a single JSON file. Mainly to simplify fs but also having possibility to for example have multiple generated keys cached in one read/write + having more meta
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.
This commit introduces these change
536868b
to
73dc5be
Compare
@pi0 Is there something else needed for this to get merged? |
73dc5be
to
55cc0fd
Compare
π Linked issue
closes #132
β Type of change
π Description
In this PR a new flag (
--https.reuse
) is introduced to be able to reuse previosly autogenerated certificates, instead of generating them every timelisthen
is restarted.π Checklist