new cryptplug function importCertificateFromMem()