In this blog post I wanted to show how one can use C# or Python to view the serial numbers of a X509 certificate. The serial number can be used to identify the certificate that one plans to use in their C# application, lets say for mutual authentication to another service.
Why use X509 Certificates
- Client X.509 certificate identity adds an additional level of asymmetrical cryptography to the standard SSL/TLS channel.
- Long security keys (2046 bits)
- One can revoke certificates by using Certificate Revocation List (CRL).
- Easy to use in application to application
View X509 Certificate Serial Number using C#
If you are using dotnetcore first create a console app using the command below
|
1 2 3 |
>mkdir certsharp >cd certsharp >dotnet new console |
The command above will create … Read the rest “View X509 Certificate Serial Number using C# or Python”


