Created a self signed cert for the test:
$ openssl req -newkey rsa:4096 -nodes -sha512 -x509 -days 3650 -nodes -out nats.pem -keyout nats-priv.pem
...
$ ls *.pem
nats.pem nats-priv.pem
Ran a docker container with NATS on linux:
| using System; | |
| using System.Security.Cryptography; | |
| using System.Security.Cryptography.X509Certificates; | |
| using JsonWebToken; | |
| using Xunit; | |
| namespace JwtIssues | |
| { |
Created a self signed cert for the test:
$ openssl req -newkey rsa:4096 -nodes -sha512 -x509 -days 3650 -nodes -out nats.pem -keyout nats-priv.pem
...
$ ls *.pem
nats.pem nats-priv.pem
Ran a docker container with NATS on linux:
| using System; | |
| using System.Data.Common; | |
| using System.Data.Entity; | |
| using System.Data.Entity.Infrastructure.Interception; | |
| using System.Diagnostics; | |
| using System.Reflection; | |
| using System.Text; | |
| namespace TracingInterception | |
| { |
| using System; | |
| using NATS.Client; | |
| namespace Microsoft.Extensions.DependencyInjection | |
| { | |
| /// <summary> | |
| /// Provides extension methods for NATS registration with ASP.Net Core DI | |
| /// </summary> | |
| public static class NatsServiceCollectionExtensions |