Freeware library to create Excel files

https://github.com/dotnetcore/NPOI

How to enable TLS 1.2 on Windows Server 2008 R2

Problem

How to enable TLS 1.2 on Windows Server 2008 R2?

Resolution

QuoVadis recommends enabling and using the TLS 1.2 protocol on your server.  TLS 1.2 has improvements over previous versions of the TLS and SSL protocol which will improve your level of security.  By default, Windows Server 2008 R2 does not have this feature enabled.  This KB article will describe the process to enable this.

  1. Start the registry editor by clicking on Start and Run. Type in “regedit” into the Run field (without quotations).
  2. Highlight Computer at the top of the registry tree.  Backup the registry first by clicking on File and then on Export.  Select a file location to save the registry file.
  3. Browse to the following registry key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols
  4. Right click on the Protocols folder and select New and then Key from the drop-down menu. This will create new folder.  Rename this folder to TLS 1.2.
  5. Right click on the TLS 1.2 key and add two new keys underneath it.
  6. Rename the two new keys as:
    • Client
    • Server
  7. Right click on the Client key and select New and then DWORD (32-bit) Value from the drop-down list.
  8. Rename the DWORD to DisabledByDefault.
  9. Right-click the name DisabledByDefault and select Modify… from the drop-down menu.
  10. Ensure that the Value data field is set to 0 and the Base is Hexadecimal.  Click on OK.
  11. Create another DWORD for the Client key as you did in Step 7.
  12. Rename this second DWORD to Enabled.
  13. Right-click the name Enabled and select Modify… from the drop-down menu.
  14. Ensure that the Value data field is set to 1 and the Base is Hexadecimal. Click on OK.
  15. Repeat steps 7 to 14 for the Server key (by creating two DWORDs, DisabledByDefault and Enabled, and their values underneath the Server key).
  16. Reboot the server.

Your server should now support TLS 1.2.

Inspect your http requests with HttpLogger

Inspect your http requests with HttpLogger

Logging request/response messages when using HttpClient

A Few Great Ways to Consume RESTful API in C#

https://www.codeproject.com/Articles/1190592/A-Few-Great-Ways-to-Consume-RESTful-API-in-Csharp

Build a .NET Core and SQL Database web app in Azure App Service on Linux

https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-dotnetcore-sqldb-app

Combining a key and certificate into a .pfx file

If you want to use SSL with your site in Azure you need to have a .pfx file.

We Apache you most likely have a certificate and a private key. I am using certificate from Letsencrypt.

Using openssl you can generate the .pfx file like this:

openssl pkcs12 -export -out /tmp/certificate.pfx
-inkey /etc/letsencrypt/live/yourdomain.tld/privkey.pem
-in /etc/letsencrypt/live/yourdomain.tld/cert.pem
-certfile /etc/letsencrypt/live/yourdomain.tld/chain.pem

Replace yourdomain.tld with your actual domain name.
You will be asked for a password to protect the .pfx file

How to Build a Chat Bot Using Azure Bot Service and Train It with LUIS

https://blogs.msdn.microsoft.com/uk_faculty_connection/2017/09/08/how-to-build-a-chat-bot-using-azure-bot-service-and-train-it-with-luis/

Export git with version history

http://stackoverflow.com/questions/11879287/export-git-with-version-history