$ brew install mkcert nss $ mkcert -install Created a new local CA at "/Users/filippo/Library/Application Support/mkcert" 💥 The local CA is now installed in the system trust store! ⚡️
簽署憑證:
1 2 3 4 5 6
$ cd project $ mkcert localhost Using the local CA at "/Users/username/Library/Application Support/mkcert" ✨ Created a new certificate valid for the following names 📜 - "localhost" The certificate is at "./localhost.pem" and the key at "./localhost-key.pem" ✅
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR :3035/sockjs-node/info?t=1570436373828:1 # OR GET https://localhost:3035/sockjs-node/info?t=1570436376957 net::ERR_SSL_PROTOCOL_ERROR sockjs.js:1796 # OR GET https://localhost:3000/packs/js/application-2be7c5d587f23021bfe9.js net::ERR_ABORTED 500 (Internal Server Error) localhost/:10 # OR Failed to load resource: the server responded with a status of 500 (Internal Server Error) application-2be7c5d587f23021bfe9.js:1 # OR Rack app error handling request { GET /packs/js/application-47a01f2c35f03c5131aa.js } #<EOFError: end of file reached> # OR Puma caught this error: end of file reached (EOFError) # OR Failed to load resource: net::ERR_CERT_AUTHORITY_INVALID :3035/sockjs-node/info?t=1570452520941:1 GET https://localhost:3035/sockjs-node/info?t=1570452524158 net::ERR_CERT_AUTHORITY_INVALID # OR Refused to connect to 'wss://localhost:3035/sockjs-node/661/ghika1m3/websocket' because it violates the following Content Security Policy directive: "connect-src 'self' https: http://localhost:3035 ws://localhost:3035". sockjs.js:1887