Regenerated SSL Certificate with localhost common name #95

Merged
merged 2 commits into from Jun 15, 2013

Conversation

Projects
None yet
7 participants
Contributor

theshortcut commented Mar 9, 2013

This allows Chrome on OS X to not show the SSL warning once the certificate has been added to Keychain and set to always trust.

Fixes #94

dismory commented Mar 14, 2013

Great, it works for me.

Owner

defunkt commented Mar 18, 2013

How are you adding the certificate to Keychain?

dismory commented Mar 19, 2013

@defunkt

  1. save the following code in bin/djsd as a file with .pem extension, like dotjs.pem
  2. open it with Keychain
  3. configure its Trust section as the pic shows
-----BEGIN CERTIFICATE-----
MIICHTCCAYYCCQClZE2IvNWbtDANBgkqhkiG9w0BAQUFADBTMQswCQYDVQQGEwJV
UzETMBEGA1UECBMKQ2FsaWZvcm5pYTELMAkGA1UEBxMCTEExDjAMBgNVBAoTBWRv
dGpzMRIwEAYDVQQDEwlsb2NhbGhvc3QwHhcNMTMwMjIwMjMzNzUzWhcNMjIxMTIw
MjMzNzUzWjBTMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTELMAkG
A1UEBxMCTEExDjAMBgNVBAoTBWRvdGpzMRIwEAYDVQQDEwlsb2NhbGhvc3QwgZ8w
DQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAMNgNijoFmD5TX7NMd2pGEeEmwRifWRc
45jVS1a5kUncfRfgr4ehygPQDS2XrUkd+OYneFIXOcANW9WAWAlfeLs8DiSgs+9m
tuVjZ58RAsRXkW7H3vqQv5sAxmmwwVGN9WfKW+II/xLhpMtVGQH+MOucGbssODzk
0vwXEGSeEqYdAgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAgCW2RBZgDMikQenSF3sz
u7KDe8+t8qnEFvrwCEpLUzvedSZxkaKzHrrCnIYlDnXRZBveKngWoejGzqtyIXup
YKzBZaZWH8cV72RdDwgM1owWi3KZBKpxfphYkWSRRx59djHZY/Yjudnb3oT/3c8/
NHsFbLbrZaGriLshIwrjEGs=
-----END CERTIFICATE-----

Screen Shot 2013-03-20 at 12 27 50 AM

mislav commented Mar 25, 2013

Works like a charm, thanks!

worked for me, had to remember to kill the djsd process. 👍

worked here too 👍

tekkub commented May 18, 2013

You can also drag the cert icon out of chrome to obtain it:

  • Go to https://localhost:3131/
  • Click the X-Padlock icon in the address bar
  • Click "Certificate Information"
  • Drag the large cert icon to the desktop
  • Use the instructions above to add the cert to the keychain and trust it

I did this with a cert I generated myself, and all is well now. 🐼

defunkt added a commit that referenced this pull request Jun 15, 2013

Merge pull request #95 from theshortcut/master
Regenerated SSL Certificate with localhost common name

@defunkt defunkt merged commit efd1619 into defunkt:master Jun 15, 2013

@willscripted willscripted referenced this pull request in glenbot/dotjs-ubuntu Jul 4, 2013

Merged

Update certs to specify localhost as common name #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment