User Tools

Site Tools


misc_tricks

Miscellaneous tricks

This is a collection of Miscellaneous tricks that I encountered and wanted to archive here.

Favicon as Base64

From http://stackoverflow.com/a/34699173/862188

Convert your image file to Base64 string with a tool like this and then replace the YourBase64StringHere placeholder in the below snippet with your string and put the line in your HTML head section:

<link href="data:image/x-icon;base64,YourBase64StringHere" rel="icon" type="image/x-icon" />

Recreate CSR and new cert from existing cert and key OpenSSL

sudo openssl x509 -x509toreq -in cert.pem -out CSR.csr -signkey key.pem
sudo openssl req -in CSR.csr -out cert.pem.new -key key.pem -x509 -days 3650
misc_tricks.txt · Last modified: by zertrin