a certrificate writer in node.js