fixes email certificate with CJs latest API fix