Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question AxiosError: self signed certificate in certificate chain

Discussion in 'Unity Hub' started by Panthesilea, Sep 11, 2023.

  1. Panthesilea

    Panthesilea

    Joined:
    May 31, 2013
    Posts:
    13
    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?
     
    Soulin_Dusud likes this.
  2. Soulin_Dusud

    Soulin_Dusud

    Joined:
    Oct 2, 2023
    Posts:
    1
    Hello,
    Got the same issue here. Can't log in Unity Hub with my work laptop. Can't find a workaround to this.
     
  3. Panthesilea

    Panthesilea

    Joined:
    May 31, 2013
    Posts:
    13
    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.
     
    judesidloski likes this.