====== 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 [[https://zertrin.org/timo-tools/base64i/|this]] and then replace the YourBase64StringHere placeholder in the below snippet with your string and put the line in your HTML head section: ===== 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