Notes on Creating a Multidomain SSL Certificate on IIS7

Creating the CSR: Everything you need to know is here: Create a CSR with SHA256 signature algorithm Importing the certificate: Save the certificate to a .cer file somewhere you can easily find it, and add it using ‘complete certificate request’ from IIS Manager’s Server Certificates section. You may (will) find that although the certificate imports apparently successfully, it will vanish if …

Fast SQL Server Inserting Data from .NET

Today we needed to insert a large amount (250,000 rows) of automatically generated data into a SQL Server database. Generating the data was very fast, but inserting each line with a SQL Insert statement, painfully slow, even if logging is in Simple Mode in the SQL database. So… we investigated the SQLBulkCopy function in .NET, but this is usually used …

How Strong is Your Password?

Here’s a rather neat online tool which you can use to measure the strength of your passwords, which is directly related to how long the password is, and what character set you’ve used (a to z, or symbols, etc). https://www.grc.com/haystack.htm Give it a password… or rather something that is like your passwords, but not your actual password (!), and see …

Deep Copying an Object in VB.NET

A curious omission in .NET is the ability to make a deep copy of an object which is independent of the original object – i.e. you can change the copy without changing the original. If you simply copy an object in .NET with assignment, all you are doing is pointing a second variable at the same object in memory, and …

Converting HTML to PDF in VB.Net with PDFSharp

An interesting little problem we’ve had to implement for a client recently; how to take an HTML (passed through as an email attachment), and convert it to a PDF in a VB.net command line program. There are lots of 3rd party libraries around that do that, but typically, they’re expensive and not terribly reliable, formatting the HTML that we wanted …