add digest to certificate generator and templates