minor #431 #558 Using S/Mime certificates that has intermediate certs

Sorry bout that. It has been fixed.