How to access certification from AWS in an ASP.NET web application (Core 2)?

I am trying to deploy an ASP.NET Core 2 web application on AWAS Elastic Beanstalk.

The application is actually IdentityServer4, for which I need to have access to the certificate for signing and verifying tokens.

There is a guide to setting up certificate usage for Azure web applications HERE , but I haven't found anything like it for AWS.

No matter what I look for about AWS and its certificates, I always find articles and documentation on SSL / TLS connections for HTTPS. I know how to do this and will do it separately, I already have a certificate available in AWS Certificate Manager and I can install it in Elastic Beanstalk for load balancing, but the ACM documentation states that:

  • ACM does not provide certificates for anything other than SSL / TLS.
  • You cannot use ACM certificates for code encryption or email encryption.

So, if I want to use the certificate in my code, it seems that ACM Cert is not intended for this.

I can create a self-signed certificate with OpenSSL, but I don’t know what is the best way to access it from my ASP.NET Core 2 web application inside an Elastic Beanstalk instance. I can’t put the certificate file in my code repository, I want to somehow insert it into the environment via AWS, but I don’t know where and how can I access it in my application?

+4
source share

Source: https://habr.com/ru/post/1689308/


All Articles