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

API for generating SSL cert. #3570

Closed
gamalan opened this issue Jul 7, 2018 · 3 comments
Closed

API for generating SSL cert. #3570

gamalan opened this issue Jul 7, 2018 · 3 comments

Comments

@gamalan
Copy link
Contributor

gamalan commented Jul 7, 2018

Do you want to request a feature or report a bug?

Feature

What did you expect to see?

Continuing pull request. Alternative idea to generate SSL cert rather than using onDemand option. Adding an API that may only available when cnameFlattening is active and could be called from the app. To make sure it available, the api will use HTTP-01 challenge, assume a temporary route to use, and simulate onHost procedure.

@nmengin
Copy link
Contributor

nmengin commented Jul 10, 2018

Hello @gamalan ,

Many thanks for your interest in the project.

I am not sure to understand but your need seems to be very specific.
You want to allow users to force ACME certificate creation thanks to an entry into the API only if the CNAME flattening right?

Can you explain what can be the advantage to add a feature in Træfik instead of using directly certbot or lego?

@gamalan
Copy link
Contributor Author

gamalan commented Jul 10, 2018

Yeah, it bit too specific. What I want to do is to avoid abuse when cnameFlattening and onDemand is active. Because, when both are active, then it possible for a malicious individual to point a random CNAME record to the available host, generating SSL cert, then remove the record, which leaves unused SSL cert.

An alternative take is making a cron job to check unused SSL cert and remove it regularly. If it too specific, just close it. Just a suggestion.

@gamalan
Copy link
Contributor Author

gamalan commented Jul 10, 2018

After checking the documentation again, it seems already possible using Rest API. Nevermind then.

@gamalan gamalan closed this as completed Jul 10, 2018
@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants