Estou precisando de ajuda para fazer a publicação em uma VPS windows. Nao estou conseguindo fazer a publicação.
Versao donet 5.0
Fica dando erro HTTP Error 500.30 -
ASP.NET Core app failed to start
olhando o erro no log aparentemente nao esta conseguindo ler o certificado.
[16:03:55 INF] Getting the motors running...
[16:03:55 FTL] Host terminated unexpectedly
Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: Bad Data.
At
Internal.Cryptography.Pal.CertificatePal.FilterPFXStore(ReadOnlySpan`1 rawData, SafePasswordHandle password, PfxCertStoreFlags pfxCertStoreFlags)
at
Internal.Cryptography.Pal.CertificatePal.FromBlobOrFile(ReadOnlySpan`1 rawData, String fileName, SafePasswordHandle password, X509KeyStorageFlags keyStorageFlags)
at
System.Security.Cryptography.X509Certificates.X509Certificate..Ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
at
System.Security.Cryptography.X509Certificates.X509Certificate2..Ctor(Byte[] rawData, String password, X509KeyStorageFlags keyStorageFlags)
at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddEncryptionCertificate(Stream stream, String password, X509KeyStorageFlags flags)
at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddEncryptionCertificate(Assembly assembly, String resource, String password, X509KeyStorageFlags flags)
at Microsoft.Extensions.DependencyInjection.OpenIddictServerBuilder.AddEncryptionCertificate(Assembly assembly, String resource, String password)
Delivery term: Not specified