Open Closed

Abp Microservice Deployment #2872


User avatar
0
otee@urvin.finance created

Hello Support,

We are ready to deploy our application on Azure Kubernetes. We have a challenge with certificate. How do we deploy our microservice so they communicate via http and the services don't expect a certificate.

We get the error below when the application is starting:

[01:51:50 INF] Initialized all ABP modules. [01:51:51 FTL] UrvinFinance.DataService.HttpApi.Host terminated unexpectedly! Interop+Crypto+OpenSslCryptographicException: error:2006D080:BIO routines:BIO_new_file:no such file at Interop.Crypto.CheckValidOpenSslHandle(SafeHandle handle) at Internal.Cryptography.Pal.OpenSslX509CertificateReader.FromFile(String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate..ctor(String fileName, String password, X509KeyStorageFlags keyStorageFlags) at System.Security.Cryptography.X509Certificates.X509Certificate2..ctor(String fileName, String password) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Certificates.CertificateConfigLoader.LoadCertificate(CertificateConfig certInfo, String endpointName) at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.LoadDefaultCert() at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Reload() at Microsoft.AspNetCore.Server.Kestrel.KestrelConfigurationLoader.Load() at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.BindAsync(CancellationToken cancellationToken) at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServerImpl.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken) at Microsoft.AspNetCore.Hosting.GenericWebHostService.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token) at UrvinFinance.DataService.Program.Main(String[] args) in /Users/robertbordeaux/localProd/urvin/UrvinTerminal/services/data/src/UrvinFinance.DataService.HttpApi.Host/Program.cs:line 40

Regards, Otee


3 Answer(s)
  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    AuthServer PreConfiguration for X509 certificate is for signing the tokens, not SSL communication between services.

    You can check here for more information.

  • User Avatar
    0
    otee@urvin.finance created

    Thanks but it's not the identityserver that's not starting now. It's another service. We will deal with getting identityserver a certificate later

  • User Avatar
    0
    gterdem created
    Senior .NET Developer

    Thanks but it's not the identityserver that's not starting now. It's another service. We will deal with getting identityserver a certificate later

    The error you have shared is from AuthServer.

    You can also check AuthServer deployment on Kubernetes guide to check if it is working for you.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11