'How to fix 'self certificate issue' in webdriverIO selenium standalone server

I am getting an error Error in "Could not request headers from https://github.com/SeleniumHQ/selenium/releases/download/selenium-4.0.0/selenium-server-4.0.0.jar: self signed certificate in certificate chain, continue without checking for latest version." while using selenium-standalone-server with webdriverIO. I am running in company proxy



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source