Code for cert loader.