Получение ошибки SSL в командной строке dotnet - PullRequest
0 голосов
/ 05 июля 2018

Я получил этот выпуск с утра. Я больше не смог восстановить / собрать / добавить пакет из командной строки dotnet.

Я получил следующую ошибку:

» dotnet build
Microsoft (R) Build Engine version 15.7.179.6572 pour .NET Core
Copyright (C) Microsoft Corporation. Tous droits réservés.

  Restauration des packages pour /home/ebernard/Documents/python/test_dotnet_console/retard-cli/retard-cli.csproj...
/usr/share/dotnet/sdk/2.1.301/NuGet.targets(114,5): error : Impossible de charger l'index de service pour la source https://api.nuget.org/v3/index.json. [/home/ebernard/Documents/python/test_dotnet_console/retard-cli/retard-cli.csproj]
/usr/share/dotnet/sdk/2.1.301/NuGet.targets(114,5): error :   The SSL connection could not be established, see inner exception. [/home/ebernard/Documents/python/test_dotnet_console/retard-cli/retard-cli.csproj]
/usr/share/dotnet/sdk/2.1.301/NuGet.targets(114,5): error :   error:2006D080:BIO routines:BIO_new_file:no such file [/home/ebernard/Documents/python/test_dotnet_console/retard-cli/retard-cli.csproj]

ÉCHEC de la build.

/usr/share/dotnet/sdk/2.1.301/NuGet.targets(114,5): error : Impossible de charger l'index de service pour la source https://api.nuget.org/v3/index.json. [/home/ebernard/Documents/python/test_dotnet_console/retard-cli/retard-cli.csproj]
/usr/share/dotnet/sdk/2.1.301/NuGet.targets(114,5): error :   The SSL connection could not be established, see inner exception. [/home/ebernard/Documents/python/test_dotnet_console/retard-cli/retard-cli.csproj]
/usr/share/dotnet/sdk/2.1.301/NuGet.targets(114,5): error :   error:2006D080:BIO routines:BIO_new_file:no such file [/home/ebernard/Documents/python/test_dotnet_console/retard-cli/retard-cli.csproj]
    0 Avertissement(s)
    1 Erreur(s)

Temps écoulé 00:00:01.53

Это явно проблема с ssl, но я не смог ее исправить. Я пытаюсь переустановить dotnet-sdk, openssl, это ничего не меняет.

У вас есть идея, откуда это может прийти?

Редактировать: я на Ubuntu 16.04

Редактировать 2: я пытаюсь dotnet build изнутри Docker, и он работает, поэтому я думаю, что проблема исходит от моей установки.

1 Ответ

0 голосов
/ 08 июля 2018

Я обнаружил проблему, она связана с отсутствующим сертификатом.

В моем /etc/ssl/certs есть неработающая ссылка на отсутствующий сертификат (0c31d5ce -> ssl-cert-snakeoil.pem).

Я воссоздаю отсутствующий сертификат с помощью следующей команды, и все снова работает.

sudo make-ssl-cert generate-default-snakeoil --force-overwrite
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...