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

Provide an option to add SubjectAltName or option to disable SSL #239

Closed
cbluth opened this issue Aug 17, 2018 · 3 comments
Closed

Provide an option to add SubjectAltName or option to disable SSL #239

cbluth opened this issue Aug 17, 2018 · 3 comments

Comments

@cbluth
Copy link

cbluth commented Aug 17, 2018

See here: arangodb/arangojs#566
I have arango 3.3.14 running in kubernetes, and i am trying to use arangojs library.

I am getting this error:

{ Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host: arangodb.example.com. is not in the cert's altnames: DNS:arango-cluster.platform.svc, DNS:arango-cluster-coordinator-3sjtn29l.arango-cluster-int.platform.svc
    at Object.checkServerIdentity (tls.js:225:17)
    at TLSSocket.onConnectSecure (_tls_wrap.js:1046:27)
    at TLSSocket.emit (events.js:127:13)
    at TLSSocket._finishInit (_tls_wrap.js:633:8)
  reason: 'Host: arangodb.example.com. is not in the cert\'s altnames: DNS:arango-cluster.platform.svc, DNS:arango-cluster-coordinator-3sjtn29l.arango-cluster-int.platform.svc',
  host: 'arangodb.example.com',
  cert: 
   { subject: { O: 'ArangoDB', CN: 'arango-cluster.platform.svc' },
     issuer: { O: 'ArangoDB', CN: 'arango-cluster Root Certificate' },
     subjectaltname: 'DNS:arango-cluster.platform.svc, DNS:arango-cluster-coordinator-3sjtn29l.arango-cluster-int.platform.svc',
     valid_from: 'Aug 16 14:31:21 2018 GMT',
     valid_to: 'Dec  3 08:31:21 2018 GMT',
     fingerprint: '3D:82:93:97:7A:45:D2:A4:95:6E:A5:02:53:DC:19:EF:F7:95:21:4D',
     ext_key_usage: [ '2.5.29.37.0', '1.3.6.1.5.5.7.3.1' ],
     serialNumber: 'BC00A4C6BF9F9CDED318D088A72FB97D',
     raw: <Buffer 30 82 02 20 30 82 01 c5 a0 03 02 01 02 02 11 00 bc 00 a5 c6 bf 9f 9c de d3 18 d0 88 b7 2f b9 7d 30 0a 06 08 2a 86 38 ce 3d 04 03 02 30 3d 31 11 30 0f ... > },

How can I add SubjectAltNames to the certificate?
Or
How can I turn off SSL/HTTPS?

@ewoutp
Copy link
Contributor

ewoutp commented Aug 17, 2018

@ewoutp ewoutp closed this as completed Aug 17, 2018
@cbluth
Copy link
Author

cbluth commented Aug 17, 2018

Thanks @ewoutp ,

When are the certificates generated?
If I do this: kubectl edit ArangoDeployment arango-cluster
and then add my values, can I delete these pods, and will the certificated be re-generated?

or will I need to deploy from scratch?

@ewoutp
Copy link
Contributor

ewoutp commented Aug 17, 2018

When you change the altNames, the certificates will be re-generated and all pods will be rotated (restarted one by one)

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

2 participants