Move Postgresql certificate creation to generic-tmpl