Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

An optional MIME parameter for application/pem-certificate-chain? #435

Closed
seanturner opened this issue Aug 9, 2018 · 10 comments
Closed

Comments

@seanturner
Copy link
Contributor

Was there any thought put into included an optional parameter in application/pem-certificate-chain that indicates how many certificates are included? If not, would it be useful?

@felixfontein
Copy link

If you mean whether the root certificate should be included as well or not, that can indeed be very useful.

There are uses where the user needs the complete chain from certificate to root, for example to set up an AWS ELB load balancer (see here: "The certificate chain starts with the certificate that was generated by your CA and ends with your CA's root certificate."), and it is needed for ssl_trusted_certificate for OCSP verification in NGINX. Also, they're nice to be able to verify the validity of the provided certificate chain.

On the other hand, most people simply want the certificate with all required intermediates. So being able to indicate whether the root is included in the chain can definitely be useful from my point of view.

@seanturner
Copy link
Contributor Author

I was thinking more simply: certs=3. The number would indicate how many certificates are to be expected in the application/pem-certificate-chain. I'd like to think that people aren't using deep paths, but from experience I know they sometimes go a little over board.

@felixfontein
Copy link

I think such a simple numeric option would increase the danger of misuse: some client developers (or users, which are faced with this option) might hard-code 2, assuming that there will always only be precisely one intermediate certificate.

@uhhhh2
Copy link
Contributor

uhhhh2 commented Aug 9, 2018 via email

@felixfontein
Copy link

@uhhhh2 For me, yes. I guess the default value would be false, to not break backwards compatibility and since without root is probably the more common case (and existing clients probably don't expect the root)?

@seanturner
Copy link
Contributor Author

@felixfontein I can understand that concern. I'm certainly not hard over on including it, I do not think it'll be that hard for clients to figure it out. If you're going to just indicate whether the root is present, maybe just call it "root" ;)

@cpu
Copy link
Collaborator

cpu commented Aug 9, 2018

@seanturner Can you expand on what problem including a count of certificates would solve from your perspective? I'm not sure I understand the reason this would be favourable.

@seanturner
Copy link
Contributor Author

@cpu I've got this vague recollection that when I had to deal with application/pkix-pkipath that a couple developers asked me how many in the path? I believe they were trying to figure out how much memory they would need. Granted this was a while ago so the idea might be moot at this point.

@bifurcation
Copy link
Contributor

I'm not hearing developers asking for this, so I'm inclined to close WONTFIX. This is an easy extension to add in a future document, if it turns out to be needed.

@cpu
Copy link
Collaborator

cpu commented Aug 9, 2018

I'm +1 for WONTFIX. I think its a fairly narrow use-case and I also haven't heard any requests for it from the ACME client developers I've interacted with.

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

No branches or pull requests

5 participants