add better generate cert file script