Missing domain/altname when requesting several domains certificate #20
Carregando…
x
Referência em uma nova issue
Block a user
Nenhuma descrição fornecida.
Excluir branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I asked a question on Stack overflow but I thought to also ask it here :
I’m Using greenlock to geenrate certificates, I pass it three domains, and only get 2 in my altnames:
here are my logs:
As you can see it’s not even my first two domains that end up in my altnames but rather those that where already in the old certificate (not sure this is why tho).
Watch this: https://www.youtube.com/watch?v=bTEn93gxY50&index=3&list=PLZaEVINf2Bq_lrS-OOzTUJB4q3HxarlXk&t=26s
And read this: https://git.coolaj86.com/coolaj86/greenlock-express.js
Essentially: use the
approveDomains
callback instead of a static list. Also, the default fs plugin is very simple and doesn't support relationships. There are other plugins available in the plugins section of the page above.Also: Welcome! :)
I'm at work atm, just coming in from lunch. I gotta get back to that, but after you review those things feel free to comment again if you're still having trouble and I'll be around in the eveing.
:)
Passing approve Domains to my greenlock constructor doesn't seem to change much.
I still don't have my new domain (domain2) listed in my certificate :
NVM I just passed an array instead of a function. What is the correct syntax to use dns challenge instead of http ?
Doesn't this part :
rewrite my domain list?
Also my function approveDomains doesn't seem to be executed.
Yes, you'll want to remove the old certs and let everything refresh anew.
Also, yeah, I don't know why I put that line in there. I should probably remove that because it's more counter-productive than productive for the simple use case (and probably non-simple use cases as well).
Re: dns-01 challenges
So you advise removing the older certs before creating new ones with greenlock? I don't understand why they collide though...
Also, What happens to request received in the meantime (I am using nginx and unclear if the older certificate will get cached)?
How does the old cert paly a role in my request for a new cerificate?
Not in general, but unless you switch to one of the more advanced le-store-* strategies, the default fs strategy doesn't manage the case where you have an existing list of certs and you want to add more certs to that list -- that's a new list.
If you're not using the approve domains callback instead of array then you're all good.
When you define the array of certificates the default plugins assumes that the first element in the array is to be used for the filename and that if the cert is valid then all altnames are already present.
So it's not using the array that's the problem, it's that with the default plugin it expects the array to represent what's on the cert.
Parsing certificates is now possible, but it's very expensive (a 1mb require of llvm / asm.js type stuff) and it wasn't possible when the plugin was first created.
I want one cert with several domains behind added as time goes on. I have a cert with two domains (1 and 3 in my op) and I want to add a third, or in any case create a certifacte that covers all three domains. I'm passing all three domains to greenlock but only get a cert that covers the inital two...
If I delete the old certificate, I assume for your answer that greenlock will stop from (wrongly) assuming that all my altnames are here, and will generate a new certificate 'from scratch', am I correct ?
Thank you for your time and help anyways :)
It looks like this issue can be closed - do you agree Kudmath? The call limits in LE don't look like they will affect you with the numbers you are talking about - is there a reason why you want all your domains listed on the same cert?
You might find it easiest to use an existing plugin and then modify it + pull request any changes.
AJ - some of these questions are ones I had and that I've seen other have. What is the best way to contribute additional documentation? A docs folder with markdown? Additional docs in the code?
@chanoch I'm pretty laid back about these things. I think both of those are great ideas.
I'd definitely like to see something in the examples folder and a link to that in the README.
Sorry I've been slow to respond, but how's the plugin coming? How can I help?
@kudmath please reopen if you feel the issue isn't adequately addressed.