feat: add helper func to for default encrypted cert (#514)

* feat: helper func to for default encrpted cert
2 files changed