Friday, November 27, 2020

CONVERTING A PFX PKCS12 CERTIFICATE STORE TO PEM FORMAT:

Extracting the domain certificate:

$ openssl pkcs12 -in certificate.pfx -clcerts -nokeys -out example.com.crt

Extracting the private key:

$ openssl pkcs12 -in certificate.pfx -nocerts -nodes -out example.com.key

Extracting the chain:

# openssl pkcs12 -in certificate.pfx -out example.com-ca.crt -nodes -nokeys -cacerts

--


NOTE: This post is a re-hash of an excellent article at: How to Convert and Use PKCS#12/PFX Certificate on Apache (linoxide.com)

This is part of my personal 'cheat sheet'.

Friday, July 31, 2020

KDE breaks GTK theme (Fedora 32)

I needed to install KDE temporarily in order to test something.  Once I was done, I removed the KDE desktop environment package group and went back to using Gnome.  Unfortunately, once I did that, Nautilus and several other Gnome applications had broken colour themes.


Which I will summarize here by simply saying the following:  

$ vi ~/.config/gtk-3.0/gtk.css

Comment out the @import 'colors.css'; line.

# @import 'colors.css';

And save it.



Restart Gnome and all should be back to normal:

alt+f2

r<enter>




Bluetooth stuck in airplane mode

It bluetooth on linux gets stuck in airplane mode it may disappear even from the hardware list, if this happens on a desktop computer that lacks an airplane mode switch, it can be confusing even seemingly impossible to bring back.

Here is a quick and simple solution:

Reboot and add the following argument to your kernel boot options at startup:

acpi_osi=! acpi_osi="Windows 2009"

Once your system boots up bluetooth will reappear in the Gnome Settings as being available.

Note that this solution also works with WIFI devices.