Guest User

Untitled

a guest
Jun 14th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. $ dotnet --info
  2. .NET Core SDK (reflecting any global.json):
  3. Version: 2.1.300
  4. Commit: adab45bf0c
  5.  
  6. Runtime Environment:
  7. OS Name: rhel
  8. OS Version: 7
  9. OS Platform: Linux
  10. RID: rhel.7-x64
  11. Base Path: /usr/share/dotnet/sdk/2.1.300/
  12.  
  13. Host (useful for support):
  14. Version: 2.1.0
  15. Commit: caa7b7e2ba
  16.  
  17. .NET Core SDKs installed:
  18. 2.1.300 [/usr/share/dotnet/sdk]
  19.  
  20. .NET Core runtimes installed:
  21. Microsoft.AspNetCore.All 2.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.All]
  22. Microsoft.AspNetCore.App 2.1.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
  23. Microsoft.NETCore.App 2.1.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  24.  
  25. gitlab-runner@ctxglc-vn02 $ dotnet restore -v n --configfile ~/NuGet.Config
  26. Build started 6/12/18 2:15:05 PM.
  27. 1>Project "/home/gitlab-runner/builds/046a2bda/0/Project/ProjectApi/src/API/API.csproj" on node 1 (Restore target(s)).
  28. 1>Restore:
  29. Restoring packages for /home/gitlab-runner/builds/046a2bda/0/Project/ProjectApi/src/API/API.csproj...
  30. 1>/usr/share/dotnet/sdk/2.1.300/NuGet.targets(114,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/home/gitlab-runner/builds/046a2bda/0/Project/ProjectApi/src/API/API.csproj]
  31. /usr/share/dotnet/sdk/2.1.300/NuGet.targets(114,5): error : The SSL connection could not be established, see inner exception. [/home/gitlab-runner/builds/046a2bda/0/Project/ProjectApi/src/API/API.csproj]
  32. /usr/share/dotnet/sdk/2.1.300/NuGet.targets(114,5): error : error:2006D002:BIO routines:BIO_new_file:system lib [/home/gitlab-runner/builds/046a2bda/0/Project/ProjectApi/src/API/API.csproj]
  33. 1>Done Building Project "/home/gitlab-runner/builds/046a2bda/0/Project/ProjectApi/src/API/API.csproj" (Restore target(s)) -- FAILED.
  34.  
  35. Build FAILED.
  36.  
  37. "/home/gitlab-runner/builds/046a2bda/0/Project/ProjectApi/src/API/API.csproj" (Restore target) (1) ->
  38. (Restore target) ->
  39. /usr/share/dotnet/sdk/2.1.300/NuGet.targets(114,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/home/gitlab-runner/builds/046a2bda/0/Project/ProjectApi/src/API/API.csproj]
  40. /usr/share/dotnet/sdk/2.1.300/NuGet.targets(114,5): error : The SSL connection could not be established, see inner exception. [/home/gitlab-runner/builds/046a2bda/0/Project/ProjectApi/src/API/API.csproj]
  41. /usr/share/dotnet/sdk/2.1.300/NuGet.targets(114,5): error : error:2006D002:BIO routines:BIO_new_file:system lib [/home/gitlab-runner/builds/046a2bda/0/Project/ProjectApi/src/API/API.csproj]
  42.  
  43. 0 Warning(s)
  44. 1 Error(s)
  45.  
  46. Time Elapsed 00:00:02.84
  47.  
  48. $ curl -v https://api.nuget.org/v3/index.json
  49. * About to connect() to proxy proxy.company.local port 8080 (#0)
  50. * Trying 1.1.1.1...
  51. * Connected to proxy.company.local (1.1.1.1) port 8080 (#0)
  52. * Establish HTTP proxy tunnel to api.nuget.org:443
  53. > CONNECT api.nuget.org:443 HTTP/1.1
  54. > Host: api.nuget.org:443
  55. > User-Agent: curl/7.29.0
  56. > Proxy-Connection: Keep-Alive
  57. >
  58. < HTTP/1.1 200 Connection established
  59.  
  60. "http.proxy": "https://company-proxy:3128",
  61. "http.proxyStrictSSL": false,
  62.  
  63. nuget.exe config -set http_proxy=http://my.proxy.address:port
  64. nuget.exe config -set http_proxy.user=mydomainmyUserName
  65. nuget.exe config -set http_proxy.password=mySuperSecretPassword
  66.  
  67. <configuration>
  68. <!-- stuff -->
  69. <config>
  70. <add key="http_proxy" value="http://my.proxy.address:port" />
  71. <add key="http_proxy.user" value="mydomainmyUserName" />
  72. <add key="http_proxy.password" value="base64encodedHopefullyEncryptedPassword" />
  73. </config>
  74. <!-- stuff -->
  75.  
  76. chmod o+r /etc/pki/tls/certs/some_cert.crt
Add Comment
Please, Sign In to add comment