Get the thumbprint value Get-ChildItem -path cert:\LocalMachine\My Get the serial number. the powershell command below gives you a list of all the certificates installed in the Personal section of the local machine store. Get-ChildItem -path cert:\LocalMachine\My | Format-Table serialnumber, subject -AutoSize to save both outputs to a file just add >> [path to file] to the commands
A script to find a string value in the Database. This script searches every field (varchar, nvarchar, char, nchar) in every table in the database.
When testing Code / security setups / … you may need some certificates to play with or to test your setup. You can create valid Self Signed certificates from the visual studio command prompt using the makecert commandline tool.
When deploying your code to a remote server it is always usefull to know the version of the .net framework installed on the server. the scripts below are powershell scripts that look in the registry for the installed versions.
Here’s an example of the necessary steps to deploy a 2 way ssl authentication in WCF using IIS 10 and 2 self signed certificates .
Nlog is a .net logging framework that can be configured from a config file or from inside your code itself. below i will give a brief description of how to configure Nlog from code. The code
The basic structure of a T-sql transaction / rollback for MS-SQL with a custom error thrown
Elmah is a open source error logging module for .net projects. It is easily integrated with any web projects and provides a basic interface for viewing the captured exceptions.