AxiosError: self signed certificate in certificate chain

Hi!

I’m trying to sign in into Unity Hub (v3.5.1) from a corporate network but I always get this error:

{“timestamp”:“2023-09-11T06:17:33.250Z”,“level”:“error”,“moduleName”:“Authentification Service”,“message”:“[\n AxiosError: self signed certificate in certificate chain\n at TLSSocket.onConnectSecure (node:_tls_wrap:1535:34)\n at TLSSocket.emit (node:events:513:28)\n at TLSSocket.emit (node:domain:489:12)\n at TLSSocket._finishInit (node:_tls_wrap:949:8)\n at ssl.onhandshakedone (node:_tls_wrap:730:12) {\n code: ‘SELF_SIGNED_CERT_IN_CHAIN’,\n config: { transitional: [Object], adapter: [Function: httpAdapter], transformRequest: [Array], transformResponse: [Array], timeout: 0, xsrfCookieName: ‘XSRF-TOKEN’, xsrfHeaderName: ‘X-XSRF-TOKEN’, maxContentLength: -1, maxBodyLength: -1, env: [Object], validateStatus: [Function: validateStatus], headers: [Object], proxy: false, method: ‘post’, url: ‘https://api.unity.com/v1/oauth2/token’, data: ‘redirect_uri=unityhub%3A%2F%2Flogin&code_verifier=TlN4lSqmf0cWZyxzya1rn4uuw0AE3HYbf8SDKCT8PSofpKWZaOEMe7pVNtPV4p9vUF3TrXzeOAqpqmLdl5dHvJV2bK6RzWXA3JGp&code=gxAH1hcKkS5ZV0D7ElNxgQ007f&client_id=unity_hub&grant_type=authorization_code’ },\n request: Writable { _writableState: [WritableState], _events: [Object: null prototype], _eventsCount: 3, _maxListeners: undefined, _options: [Object], _ended: false, _ending: true, _redirectCount: 0, _redirects: [ ], _requestBodyLength: 232, _requestBodyBuffers: [Array], _onNativeResponse: [Function (anonymous)], _currentRequest: [ClientRequest], _currentUrl: ‘https://api.unity.com/v1/oauth2/token’, [Symbol(kCapture)]: false }\n }\n]”}

Is there any way I can solve this issue?

1 Like

Hello,
Got the same issue here. Can’t log in Unity Hub with my work laptop. Can’t find a workaround to this.

Hi!

I have resolved the issue (maybe only in my corporate environment). I created the services-config.json file described in this document: link

I tried with Hub 2.4.2.

1 Like

Not sure if we had the same issue, but i solved my issue about self signed certificate in certificate chain by importing custom certificate.
As mentioned in Unity manual
Unity - Manual: Solving network issues
Firstly, I created a config file and pointed ca to a new text file.
Then, exported a certificate of one company’s internal site from MS Edge, opened it with Notepad, copied the contents, and pasted it into the new text file.
Restarted the project. Done!