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

Error while uploading certificate #27

Open
neeraj-laad opened this issue Apr 11, 2019 · 6 comments
Open

Error while uploading certificate #27

neeraj-laad opened this issue Apr 11, 2019 · 6 comments

Comments

@neeraj-laad
Copy link

neeraj-laad commented Apr 11, 2019

I'm getting error while uploading the certificate:

bx app domain-cert-add xyz.io -c cert.pem -k privkey.pem -I chain.pem

Uploading certificate to domain 'xyz.io'...
FAILED
Error: {code: 'bad_request', message: 'The domain xyz.io is not supported by the certificate CN/SAN matches [host.xyz.io] and misses [].'}

Here's my domains.json file:

"domains": [
  {
    "domain": "xyz.io",
    "hosts": [
      "host"
    ]

This used to work as is earlier but I am unable to upload the certs now.. Am I missing a step here?

@lmsurpre
Copy link
Member

lmsurpre commented Apr 11, 2019

Maybe they added some validation to the upload or something?

Anyway, to include the bare domain (xyz.io) in your cert from let's encrypt, just add an entry for "." the beginning of your hosts list:

    "hosts": [
      ".",
      "host"
    ]

Try that and let us know if IBM Cloud is still complaining about the cert you get.

@neeraj-laad
Copy link
Author

neeraj-laad commented Apr 25, 2019

I actually don't want to include the bare domain in my cert, we have a different cert for that already. I only want to add a cert for this subdomain. We have been able to do this in the past, but looks like something has changed which is stopping us from doing so now.

Is there a way to skip/bypass this validation?

@Agusnez
Copy link

Agusnez commented Oct 8, 2019

I have the same problem here.

@lmsurpre
Copy link
Member

lmsurpre commented Oct 8, 2019

Thanks for the reports, I havn't had a chance to try this in a while. Have you tried writing IBM Cloud support to see if something changed on their end?

@patelnisarg61
Copy link

Is there a solution to this? Because I am facing the same problem.

@patelnisarg61
Copy link

If i keep "."
Then it says:
Waiting for certs...
Certs not ready yet, retrying in 5 seconds.
Certs not ready yet, retrying in 5 seconds.

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

No branches or pull requests

4 participants