modify generate certificate module