-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Added support to download Let's Encrypt Certificate #1343
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
This is an automated message from CI: Docker Image for build 2 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
This is an automated message from CI: Docker Image for build 3 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
This is an automated message from CI: Docker Image for build 4 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
This is an automated message from CI: Docker Image for build 5 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
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.
handled by using certificate.provider
This is an automated message from CI: Docker Image for build 6 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
This is an automated message from CI: Docker Image for build 7 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
@jc21 , can it be merged?? or any other additional changes required?? |
This is an automated message from CI: Docker Image for build 8 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
Hmm no it doesn't seem to be ready. Have you tested this yourself? I just tried it for some LE certs, take a look: You'll notice that the files are not the actual files, they are symlinks. So your code to zip stuff up needs to dereference (or follow?) the symlinks somehow to include the actual files instead. |
This is an automated message from CI: Docker Image for build 9 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
|
Well yes it's an improvement, but you only have 1 certificate in that folder. The majority of users who have certs renewing over time will have all the old ones too. In my example above I have 21 certificates (84 files). Your script will zip them all up instead of the most current one. This is why I think dereferencing those symlinks is a better idea than grabbing everything from archive. |
This is an automated message from CI: Docker Image for build 10 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
This is an automated message from CI: Docker Image for build 11 is available on DockerHub as Note: ensure you backup your NPM instance before testing this PR image! Especially if this PR contains database changes. |
deferenced the symlinks and zipped the certs using realpathSync |
Working beautifully thanks :) |
Covered Issue #404