Failed to authenticate HTTPS connection. Conflicting certificates for localhost when using Visual Studio for Mac

Lately, I have been trying Visual Studio for Mac as this version of Visual Studio has evolved significantly. However, something I noticed is that since I don’t use it often, the local SSL certificates created by dotnet in the Mac get a bit screwy.

There is a possibility that you might end up with a conflicting certificate for localhost from creating or setting up applications in the past.

If you work with the Mac version of Visual Studio, and you ever get the following error, run the commands at the bottom to clean up the existing certificates for localhost and create new ones.

Failed to authenticate HTTPS connection. System.IO.IOException: Authentication failed because the remote party has closed the transport stream.

Open the terminal window, browse to your dotnet project and execute the following commands:

$dotnet dev-certs https --clean
$dotnet dev-certs https

Happy coding!

How to Monetize your Blog with Google AdSense

google adsenseHow to monetize your blog? When you’ve had a blog for a while with plenty of content and visitors, one of the options you have it to monetize it is displaying ads.

You care about your site and your content, and you should care about the ads you choose to show in your website.

Google AdSense offers relevant ads and it gives you control over the look and the position of these ads.

In this article, we’ll show you how to use AdSense to monetize your blog. Continue reading “How to Monetize your Blog with Google AdSense”

How to remove the date from your WordPress blog posts

In this blog post, I will show you how to remove the date from your WordPress blog posts without losing traffic. WordPress is the most popular blogging platform out there, it is widely used not just for blogs but also for full featured websites by professionals and businesses. One of the reasons of its popularity is that you can get a simple blog started within minutes. There are a multitude of free plugins and themes available to you to help you create and launch your blog in a short amount of time.

One of the most common mistakes people new to WordPress do when starting a blog is to leave the default permalink option. The default permalink option often includes a post id or the date and name of a post. While the date and name of post isn’t the worst option, it is also not the best one if you care about search engine optimization (SEO). Continue reading “How to remove the date from your WordPress blog posts”

Installing Windows Home Server (WHS) Connector in Windows 7 64-bit

I bought a Windows Home Server about two years ago, I use it primarily for backups and file sharing in my home network. It is a good solution for a small home network such as mine because it is sufficient, it is not overkill and it is easy to manage.

A few months ago, I put together a new PC which I use for development when I am home and for gaming. I installed Windows Ultimate 64-bit in it and up until today, I didn’t worry about connecting it to the WHS because I didn’t have much to backup, now I do. Continue reading “Installing Windows Home Server (WHS) Connector in Windows 7 64-bit”