Monday, 23 March 2020

Make .pfx from .cer and .key on Windows 10

The easiest way I found to do this on Windows 10 is with certutil.exe.

1. Make sure your .cer and .key have the same name e.g. domain.cer, domain.key and put them in the same directory, I use C:\cert\.
2. Open an Administrative Command Prompt and make sure you are in the C:\Windows\System32 directory
3. Type this command >certutil -mergepfx C:\cert\domain.cer, C:\cert\domain.pfx (the command assumes domain.key)
4. Before the command completes you will be asked to enter a password which you should do because most certificate upload routines demand a password protected .pfx file.

Tuesday, 28 January 2020

Enable Virtualisation in Gigabyte BIOS

I had virtualisation enabled and Hyper-V was working well. I then updated my NVIDIA GEForce adapter and after the restart Hyper-V was broken. It was reporting a 'Hypervisor not running' error. I suspect that something in the NVIDIA update had switched off the hypervisor autostart in the Boot configuration file. Rather than play around with editing that I removed Hyper-V, restarted and then added it again. Hyper-V came back working, I lost my switch settings but everything else was fine.

To enable the hypervisor in Gigabyte Bios with a Ryzen chip do the following:
1. Hit DEL at startup to enter BIOS configuration
2. Go to MIT / Advanced Frequency Settings / Advanced CPU Settings/
3. Enable SVM

Wednesday, 22 January 2020

SharePoint Error 500 Internal Server Error

I see this error quite often, usually after a server restart and the solution for me is to check that all the Application Pools are Started. The usual culprit is 'SecurityTokenServiceApplicationPool'. Find it in IIS Manager and if it's stopped then restart it, also open the Advanced Settings to refresh the Identity by re-entering the username and password.