Dex and ssl certs

Which part of the code updates ssl certs in /etc/ood/dex?
If you are using an ssl cert with chain cert you need to cat CAChain into your cert. Otherwise curl and other ssl checkers fail due to missing chain cert. What do you guys suggest doing? Just concatenate prior myCAChain.crt >> my .crt and drop apache SSLCertificateChainFile line?

  • ‘SSLCertificateFile “/etc/pki/tls/certs/my.crt”’
  • ‘SSLCertificateKeyFile “/etc/pki/tls/private/my.key”’
  • ‘SSLCertificateChainFile “/etc/pki/tls/certs/myCAChain.crt”’

Think I’ll just cat CAChain.crt >> site.crt to keep it simple and not require any code changes or work arounds.

Hi Jesse, sorry for the delay in response.

The /etc/ood/dex config is handled by the ood-portal-generator app. The pieces of the app which specifically handle dex are in:
Which uses entries from:

If you scroll to the bottom of that yaml file, you can see the dex: key which then has further attributes below you can set that will then be pulled into that dex.rb file for use in constructing the config for dex.

For Apache SSL directives the relevant settings are found further up in that ood_portal.yml where you can see the following:

List of SSL Apache directives
- ‘SSLCertificateFile “/etc/pki/tls/certs/”’
- ‘SSLCertificateKeyFile “/etc/pki/tls/private/”’
Default: null (no SSL support)
ssl: null

As for the CAChain, catting that into your crt seems like the most straightforward way to handle the chain dependency assuming the proper order is maintained. However, this makes me realize there is nothing to handle the CAChain.crt at the moment, so that’s a good catch that we will have to address. I will be opening an issue to address this. Thanks for the question and please let us know if you need anything else.