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

Modify SSL script to create custom CA and set SAN #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jat255
Copy link
Member

@jat255 jat255 commented May 19, 2021

Hi @Guillaume-sousa,

In my local development, in order to get things working without any warnings or errors in my browser, I had to change how the SSL certificates are created. I modified docker_set_ssl.sh to create a custom certificate authority, and also made it so the certificate is created with the SAN defined as $HOSTNAME (since modern versions of Chrome do not accept the CN to identify a server, and the DNS SAN must be defined.

Not sure if you would want to include this in the upstream, but I thought I'd submit it so you could take a look.

…user can

trust the CA and everything will work "as expected" in the browser without
warnings
@jat255
Copy link
Member Author

jat255 commented May 19, 2021

I should add, to get this to work fully in your local browser, you'll need to trust the CA certificate that is created (cdcsCA.crt) by importing it into your Authority store. This is what that looks like in Chrome on Linux, but there are slightly different methods for each platform:

image

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

Successfully merging this pull request may close these issues.

1 participant