Tuesday, October 10, 2017

Certification

Just a quick note to self, for the fastest (paid) SSL certificates, use: ssllabs.

To fix any trust chain issues that you might encounter (especially on mobile browsers!) use: certificatechain.io.

IF for some reason the certificatechain.io does not work for you (happened to me recently) you can get the chain part online from https://whatsmychaincert.com/ create a new file and paste your certificate as the first one and paste the chain right after the original (no spaces and remember to leave the "--- begin..." and  "--- end" parts).




Update 21.01.2020

For some certificates from nazwa.pl we had an issue in generating a certificate chain on the above-mentioned sites:

Cannot generate a chain because this certificate is self-signed or signed by a certificate authority that is not widely trusted by clients.  Details:

* The chain ends with a root certificate that's not widely trusted by clients: C=PL, O=Unizeto Technologies S.A., OU=Certum Certification Authority, CN=Certum Trusted Network CA

Using this site helped in certificate chain generation:

https://tools.keycdn.com/certificate-chain

Friday, May 26, 2017

BB Hack Day #01

A very nice initiative, without additional stress I was able to do some of the things from my ever growing project TODO list that usually get pushed down in the priority queue.

Node version changing made easy:


https://www.npmjs.com/package/n

Simply `n` launches a select node version screen
Typing `n 6.10.3` will install and switch to node version 6.10.3

Simple, fast and super efficient!


Visual Studio code & Es5 to Es6 plugin

Visual Studio Code, I used webstorm for the past  +1 year (2 maybe?)  and really enjoyed working with it. However my version is not getting any younger and does not support for more than ES5 so a change had to be made! Since most of the office is working on Visual Studio code the choice was obvious.

As for the plugin:

Helps removing a lot of boilerplate code, take advantage of more strict variable declaration  and most importantly it's one step further to transition old code projects to something a bit more up to date.

As a fun fact I can say that after running this plugin on a legacy code controller there was a saving of only  20 lines of code but the keyword function count dropped from 125 to ... 2. That is a lot of nice and clean arrow functions!

DB migration


Just a note to self, checking that no one else is using your local db remotely was a good move but doing a local backup before reinstalling (just in case) is a good move that I should remember to do not only on production servers. Local backups are also useful!