Recent Posts
fix: Git Slow On Windows
git on my Windows machine was reheheally slow when running commands such as git diff and git log, but only when I had network connectivity. If I removed my network connection it was fast again ¯\(ツ)/¯. I couldn’t figure it out, but found some stack overflow post with a fix which solved it for me.
click start type "git bash" right click icon, left click "Run as administrator" # get current user entry and cache it in /etc/passwd mkpasswd -c > /etc/passwd # Set home directory to existing directory /c/Users/<your-username> vim /etc/passwd # edit nsswitch and comment out "db" to prevent accessing Microsoft AD vim /etc/nsswitch.
read more
Check SSL certificate expiration on remote SMTP server
Check SSL certificate expiration on a remote SMTP server using openssl
printf 'quit\n' | openssl s_client -servername <servername> -connect <ip/hostname>:<port> | openssl x509 -enddate -noout
read more
CSR In One Go
Generate a Certificate Signing Request (CSR) in one command
openssl req -new -newkey rsa:2048 -nodes -out <common name>.csr -keyout <common name>.key -subj "/C=SE/ST=/L=/O=<organization>/CN=<common name>" Send the generated .csr to the issuer Get back an issued certificate from the issuer Use the generated .key for the issued certificate
read more