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

SELF_SIGNED_CERT_IN_CHAIN while launching server #182

Closed
mica16 opened this issue Sep 8, 2013 · 3 comments
Closed

SELF_SIGNED_CERT_IN_CHAIN while launching server #182

mica16 opened this issue Sep 8, 2013 · 3 comments

Comments

@mica16
Copy link

mica16 commented Sep 8, 2013

I really applied the procedure found in the README. (I'm based on the latest github version (today))

However, when I launch the server, I obtain this error:

Proxying MongoLab at https://api.mongolab.com/api/1 with NojBn1IDoowbBCcRQoRi-OimX-etDI3y
Angular App Server - listening on port: 3000
Angular App Server - listening on secure port: 8433
Unauthenticated
127.0.0.1 - - [Sun, 08 Sep 2013 10:18:12 GMT] "GET / HTTP/1.1" 200 739 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1"
Unauthenticated
Unauthenticated
127.0.0.1 - - [Sun, 08 Sep 2013 10:18:12 GMT] "GET /current-user HTTP/1.1" 200 24 "http://localhost:3000/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/536.30.1 (KHTML, like Gecko) Version/6.0.5 Safari/536.30.1"

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: SELF_SIGNED_CERT_IN_CHAIN
    at SecurePair.<anonymous> (tls.js:1350:32)
    at SecurePair.EventEmitter.emit (events.js:92:17)
    at SecurePair.maybeInitFinished (tls.js:963:10)
    at CleartextStream.read [as _read] (tls.js:463:15)
    at CleartextStream.Readable.read (_stream_readable.js:320:10)
    at EncryptedStream.write [as _write] (tls.js:366:25)
    at doWrite (_stream_writable.js:219:10)
    at writeOrBuffer (_stream_writable.js:209:5)
    at EncryptedStream.Writable.write (_stream_writable.js:180:11)
    at write (_stream_readable.js:573:24)

How to fix this error? Is there anything I should set up, like certificate rules?

Thanks a lot.

@petebacondarwin
Copy link
Contributor

Are you browsing to the http (3000) or https (8433) port? If you are going to the 8433 port then it may be that you have not set up your SSL certificate correctly. You probably need to tell your computer that it is to be trusted, even though it is self-signed.

@mica16
Copy link
Author

mica16 commented Sep 28, 2013

Actually, I've just found out that my antivirus was blocking some needed certificates.
Now, as well configured, the error disappeared. Thanks

@petebacondarwin
Copy link
Contributor

Great. I am glad you got to the bottom of it!

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