Skip to content

Certificate present on a mounted volume but the error Interop+Crypto+OpenSslCryptographicException: error:2006D080:BIO routines:BIO_new_file:no such file  #36333

Description

@hakeemoriola

Screenshot 2020-05-13 at 11 22 43

Screenshot 2020-05-13 at 11 22 15

Screenshot 2020-05-13 at 11 20 36

I wrote a code to list the content of the mounted directory, I can see the file but when I try to load the certificate it still gave this
crit: Microsoft.AspNetCore.Server.Kestrel[0]
infusync.identity_1 | Unable to start Kestrel.
infusync.identity_1 | Interop+Crypto+OpenSslCryptographicException: error:2006D080:BIO routines:BIO_new_file:no such file
infusync.identity_1 | at Interop.Crypto.CheckValidOpenSslHandle(SafeHandle handle)
infusync.identity_1 | at Internal.Cryptography.Pal.OpenSslX509CertificateReader.FromFile(String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
infusync.identity_1 | at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags)
infusync.identity_1 | at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password)
infusync.identity_1 | at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadCertificate(CertificateConfig certInfo, String endpointName)
infusync.identity_1 | at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadDefaultCert(ConfigurationReader configReader)
infusync.identity_1 | at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Load()
infusync.identity_1 | at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.ValidateOptions()
infusync.identity_1 | at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken)
infusync.identity_1 | Unhandled exception. Interop+Crypto+OpenSslCryptographicException: error:2006D080:BIO routines:BIO_new_file:no such file
infusync.identity_1 | at Interop.Crypto.CheckValidOpenSslHandle(SafeHandle handle)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions