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

Support multiple certs in configuration #363

Open
alabiaga opened this issue Oct 30, 2019 · 10 comments
Open

Support multiple certs in configuration #363

alabiaga opened this issue Oct 30, 2019 · 10 comments

Comments

@alabiaga
Copy link

alabiaga commented Oct 30, 2019

Currently amppackager has support for only 1 cert file. For a multi domain web property,

e.g.
example.org
subdomain.example.org
example.uk

Setting up amppackager would mean creating a config for every subdomain or TLD. The amppkg.toml should allow for setting the mapping of cert file to supported domains. An example of this is

CertFile = '.../global-cert.pem'
KeyFile =  '.../global-key.pem'
...

    [URLSet.Sign]
      CertFile = '.../cert-0.pem' # Override the global Certfile
      KeyFile = '.../privkey-0.pem' # Override the global KeyFile
      Domain = 'example.org'
       ...
    [URLSet.Sign]
      CertFile = '.../cert-1.pem' # Override the global Certfile
      KeyFile = '.../privkey-2.pem' # Override the global KeyFile
      Domain = 'example.uk'
      ...
    [URLSet.Sign]
      # Use the global Certfile and KeyFile
      Domain = 'example.org'
      ...
@alabiaga
Copy link
Author

cc\ @twifkak Let me know if this is what you had in mind in our discussions.

@twifkak
Copy link
Member

twifkak commented Oct 30, 2019

Yes, this is what I had in mind! I'm guessing for the initial implementation of this feature, it wouldn't have ACME support. @banaag is landing #349 which adds ACME support, but scaling that to handle N certificates would require a significant restructuring of the code.

@banaag
Copy link
Collaborator

banaag commented Oct 30, 2019

Definitely possible to support this feature with ACME but as @twifkak mentioned above, it will require significant amount of changes.

@ithinkihaveacat
Copy link
Contributor

Are multiple certificates absolutely necessary? I'm not sure if this will apply in this case, but a cert can typically cover multiple domains, and even span different TLDs. (And I think amppackager supports this.) The same Google cert is used for google.com, google.nl and android.com, for example.

Screenshot 2019-10-30 at 20 13 12

Different organizations should perhaps not share the same amppackager instance anyway, to keep their private keys as far away from each other as possible.

@alabiaga
Copy link
Author

@ithinkihaveacat Thanks for sharing Michael, that is a good point. So there is a lack of context in the filing of this issue but basically a publisher can have different certificates for multi TLDs and subdomains that it owns and distributed through different CDNs. I am not familiar with multi certificate and CDN strategies or why this is the case but we are basically trying to cover that scenario.

@alabiaga
Copy link
Author

@cpapazian Is #374 still a blocker? We noticed your orgs web properties has a cert issued by DigiCert. Are there multiple certs being used from DigiCert to cover different domains or just one to rule them all? Thanks

@cpapazian
Copy link

cpapazian commented Nov 22, 2019 via email

@twifkak
Copy link
Member

twifkak commented Dec 5, 2019

Note that a fix is in #374, pending my review. Just got back from a 2-week trip to Singapore/Bali; pardon the delay.

@twifkak
Copy link
Member

twifkak commented Dec 5, 2019

Also note that a workaround, in the interim, is to run different amppkg instances with different configs.

@alabiaga
Copy link
Author

alabiaga commented Dec 5, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants