Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSL issue on Ubuntu 22.04? #4166

Open
njlr opened this issue Jul 11, 2022 · 5 comments
Open

SSL issue on Ubuntu 22.04? #4166

njlr opened this issue Jul 11, 2022 · 5 comments

Comments

@njlr
Copy link

njlr commented Jul 11, 2022

dotnet paket install crashes with an SSL error.

$ dotnet paket install 
Paket version 7.1.5+e2fe7c693356a5e70a74cc01501f7dc5f8996695
Resolving dependency graph...
Total time taken: 706 milliseconds
Paket failed with
-> Unable to retrieve package versions for 'Microsoft.NetCore.App.Ref'
   -- CLOSED --
      
   -- OPEN ----
      Microsoft.NetCore.App.Ref  (from /home/njlr/Documents/proj/paket.dependencies)
      Microsoft.AspNetCore.App.Ref  (from /home/njlr/Documents/proj/paket.dependencies)
      FSharp.Core  (from /home/njlr/Documents/proj/paket.dependencies)
      Amazon.Lambda.Core  (from /home/njlr/Documents/proj/paket.dependencies)
      Amazon.Lambda.RuntimeSupport  (from /home/njlr/Documents/proj/paket.dependencies)
-> Could not load resources from 'https://api.nuget.org/v3/index.json'
-> Request to 'https://api.nuget.org/v3/index.json' failed with unknown error (_safeGetFromUrl)
-> HttpRequestException: The SSL connection could not be established, see inner exception.
-> AuthenticationException: Authentication failed, see inner exception.
-> TypeInitializationException: The type initializer for 'SslMethods' threw an exception.
-> TypeInitializationException: The type initializer for 'Ssl' threw an exception.
-> TypeInitializationException: The type initializer for 'SslInitializer' threw an exception.
-> OpenSslCryptographicException: error:0E076071:configuration file routines:MODULE_RUN:unknown module name

paket.dependencies

source https://api.nuget.org/v3/index.json

storage: none
framework: net6.0, netstandard2.1

nuget Microsoft.NetCore.App.Ref
nuget Microsoft.AspNetCore.App.Ref
nuget FSharp.Core
nuget Amazon.Lambda.Core
nuget Amazon.Lambda.RuntimeSupport

System info:

$ dotnet --version
6.0.301

$ openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04 LTS
Release:	22.04
Codename:	jammy
@njlr njlr changed the title SSL Issue on Ubuntu 22.04? SSL issue on Ubuntu 22.04? Jul 11, 2022
@njlr
Copy link
Author

njlr commented Jul 11, 2022

This appears to have solved it: https://stackoverflow.com/a/72137669/1256041

I guess this is a .NET issue rather than a Paket one?

@hyazinthh
Copy link

I have the same system info as you but got

Paket version 7.1.5+e2fe7c693356a5e70a74cc01501f7dc5f8996695
Resolving dependency graph...
No usable version of libssl was found

Got around it by installing libssl1.0 from here.

@64J0
Copy link

64J0 commented Sep 3, 2024

I'm having this same problem of No usable version of libssl was found using Ubuntu 24.04.

@64J0
Copy link

64J0 commented Oct 9, 2024

Got this error now:

-> Could not load resources from 'https://api.nuget.org/v3/index.json'
-> Request to 'https://api.nuget.org/v3/index.json' failed with unknown error (_safeGetFromUrl)
-> HttpRequestException: The SSL connection could not be established, see inner exception.
-> AuthenticationException: Authentication failed, see inner exception.
-> TypeInitializationException: The type initializer for 'SslMethods' threw an exception.
-> TypeInitializationException: The type initializer for 'Ssl' threw an exception.
-> TypeInitializationException: The type initializer for 'SslInitializer' threw an exception.
-> OpenSslCryptographicException: error:0E076071:configuration file routines:module_run:unknown module name

Related issues:

@Thorium
Copy link
Member

Thorium commented Jan 15, 2025

Hi, did you find anything? E.g. TypeProvider SDK build works with Windows but Ubuntu crashes on
No usable version of libssl was found:
https://github.com/fsprojects/FSharp.TypeProviders.SDK/actions/runs/12778200278/job/35620537312
Trying to install the libssl manually to CI, it says: libssl-dev is already the newest version (3.0.13-0ubuntu3.4).

Edit: This seems to be an issue with ubuntu-latest; however, hard-coding to version ubuntu-22.04 seems to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants