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

Generated certificate is not trusted by Chrome 58+ #10

Closed
johnbillion opened this issue May 31, 2017 · 12 comments
Closed

Generated certificate is not trusted by Chrome 58+ #10

johnbillion opened this issue May 31, 2017 · 12 comments

Comments

@johnbillion
Copy link

Since version 58, Chrome no longer trusts certificates that don't contain a SAN. This means Chrome now displays a security error for the Chassis-generated certificate (even after you've added it to your trust store) because it doesn't include a SAN.

  • chassis-openssl uses puppet-openssl to generate its certificates.
  • puppet-openssl doesn't support generating certificates that include a SAN (Can't add SAN records voxpupuli/puppet-openssl#44).
  • chassis-openssl uses an old version of puppet-openssl via its submodule. The current version of puppet-openssl no longer supports the version of Puppet that Chassis uses, so even if puppet-openssl added support for SAN then chassis-openssl couldn't update puppet-openssl because it's not compatible.
  • It appears the solution is to fork puppet-openssl, apply the SAN fix, and change the submodule reference used in chassis-openssl to point to this fork and reference.

Thoughts?

This change appears to be all that's needed for the SAN fix: https://github.com/johnbillion/puppet-openssl/commit/ec9df7e8ac79293a024cfae46344b7c584243e49

CC @BronsonQuick @rmccue @shadyvb because why not.

@javorszky
Copy link
Owner

Is this related to #8 ?

@johnbillion
Copy link
Author

Ah yes that's the same issue. The fix there is only partial though. The upstream change to the cert.cnf.erb file in puppet-openssl is needed.

@javorszky
Copy link
Owner

Yup. I see you've opened the PR on it. As soon as that's merged (note to self: voxpupuli/puppet-openssl#89), I'll update the submodule and create a new tag.

@johnbillion
Copy link
Author

I might not have explained myself very well. The latest version of puppet-openssl isn't compatible with Chassis (AFAICT). It'll need testing, and if it's not then we'll need a fork.

@javorszky
Copy link
Owner

Oh right... hm... will need to test, but due to client projects, side projects, and other stuff this is halfway down on my things to do list :/

@javorszky
Copy link
Owner

Woop, this has been merged upstream! Testing still needs to happen

@BronsonQuick
Copy link

I've done a fair bit of testing this afternoon and unfortunately with the current Chassis image we have Puppet version 3.8.5 installed which means we see this error:

Error: Syntax error at 'String'; expected ')' at /vagrant/extensions/chassis-openssl/modules/openssl/manifests/certificate/x509.pp:76 on node vagrant.local and the up and/or provision fails.

I believe we need at least Puppet 4.x as a minimum requirement to fix this upstream in Chassis.

@shadyvb
Copy link
Contributor

shadyvb commented Nov 20, 2017

I'm not entirely sure if that's visible in the convo that we have a temporary fix, possibly because @johnbillion 's fork of openssl module ( and the fix branch ) is based on the latest version and thus is not compatible with Chassis for the reason mentioned above.

Tempo fix is to just copy the change outline by @johnbillion in https://github.com/johnbillion/puppet-openssl/commit/ec9df7e8ac79293a024cfae46344b7c584243e49 and NOT to checkout the fork/branch ( Guilty of doing that multiple times, hence this note. ). ie: just adding the line manually.

@roborourke
Copy link
Contributor

Could also add a custom cnf template in the meantime, will work on that angle.

@johnbillion
Copy link
Author

@roborourke Did you get around to looking into this?

@roborourke
Copy link
Contributor

roborourke commented Jul 4, 2018 via email

@javorszky
Copy link
Owner

Archiving the repository. Apparently Chassis has their own fork / maintained functionality of adding SSL certs to it per #14: https://github.com/Chassis/chassis_openssl

I am no longer maintaining this repository.

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