Home > database >  The SSL connection could not be established, see inner exception when configuring Github Self-Hosted
The SSL connection could not be established, see inner exception when configuring Github Self-Hosted

Time:03-30

I am studying Github Enterprise instances and when I am trying to add a new self-hosted runner to my GitHub enterprise instance by following the steps presented at the Settings/Actions/Runners/Create/self-hosted runner directory of my organization, I am getting the error shown below at the configuration step:

$./config.sh --url <my instance url> --token <my token>

 --------------------------------------------------------------------------------
 |        ____ _ _   _   _       _          _        _   _                      |
 |       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
 |      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
 |      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
 |       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
 |                                                                              |
 |                       Self-hosted runner registration                        |
 |                                                                              |
 --------------------------------------------------------------------------------

 # Authentication

 The SSL connection could not be established, see inner exception.

I have tried some other solutions on the internet such as disabling the Dotnet socket handler with the export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0 command but it returns An error occurred while sending the request. this time.

I am pretty new at this topic, shall I make some configurations in my Github Enterprise Instance about SSL, can someone help.

CodePudding user response:

I found the solution that Transport Layer Security (TLS), the successor of the now-deprecated Secure Sockets Layer (SSL). In the docs, you can simply disable it by :

$ export GITHUB_ACTIONS_RUNNER_TLS_NO_VERIFY=1

Also, I disabled TLS from the Github Enterprise management console. That brought some other errors but they were resolved quickly.

  • Related