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

Minor updates to dumpcerts.sh #3116

Merged
merged 1 commit into from
Apr 10, 2018
Merged

Conversation

mathuin
Copy link
Contributor

@mathuin mathuin commented Apr 1, 2018

Closes #3115.

There was an extraneous $1 on line 69 which threw an error. The locations of keys and certificates in the JSON file have changed.

What does this PR do?

This pull request modifies dumpcerts.sh to run without errors and to access keys and certs in the JSON file correctly.

Motivation

I now use Traefik to manage my LetsEncrypt certs for my mail server, so I needed to learn how to extract the certs and keys as files.

More

  • Added/updated tests
  • Added/updated documentation

Additional Notes

I'm very new to Traefik. All I can say about this script is "it works for me". If it does not work for the general case, I would love to get some feedback to make a proper solution that works for both me and everyone else. Thank you in advance for your patience!

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

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

Hello @mathuin .

Many thanks for the PR.

As I said in the issue #3115, the script has been changed to allow extracting files in new format.

That's why the modifications you made about it cannot be merged.

About the $1, I was aware about the problem and the correction is a part of Pull Request I am currently working on.
However, I do not know when this PR will be ready and I guess it's better to use your fix.

WDYT about rebasing your branch on the v1.6 and keep only the $1 correction?

@mathuin
Copy link
Contributor Author

mathuin commented Apr 4, 2018

I have checked the v1.6 branch and it does still have the $1 issue. As I am not running 1.6 locally, I will be unable to test the script's functionality, but I am happy to rebase my branch on the v1.6 branch and remove all changes save the $1 change.

@nmengin
Copy link
Contributor

nmengin commented Apr 6, 2018

Hello @mathuin ,

It should be great if you can do it 😃

@mathuin mathuin requested review from a team as code owners April 6, 2018 17:52
@mathuin
Copy link
Contributor Author

mathuin commented Apr 6, 2018

I pulled the most recent changes for master and v1.6, then applied the single change to v1.6 and force-pushed to mathuin/fix-issue-3115. I think that worked. Let me know if it didn't.

@mathuin
Copy link
Contributor Author

mathuin commented Apr 6, 2018

Yeah, that did not go as I expected. I'm sorry -- if it doesn't work, perhaps it's better to wait for your fix.

@ldez ldez changed the base branch from master to v1.6 April 6, 2018 18:35
Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@nmengin nmengin left a comment

Choose a reason for hiding this comment

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

Many thanks @mathuin 👏 👍

LGTM

Copy link
Member

@juliens juliens left a comment

Choose a reason for hiding this comment

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

LGTM

@traefiker traefiker merged commit f35d574 into traefik:v1.6 Apr 10, 2018
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.

6 participants