examples/loadPemIntoKvm.js
function loadKeyIntoMap(org, cb) {
  var re = new RegExp('(?:\r\n|\r|\n)', 'g');
  var pemcontent = fs.readFileSync(opt.options.pemfile, "utf8").replace(re,'\n');
  var options = {
        env: opt.options.env,
        kvm: opt.options.mapname,
        key: opt.options.entryname,
        value: pemcontent
      };
  common.logWrite('storing new key');
  org.kvms.put(options, cb);
}
function loadKeyIntoMap(org, cb) {
  var re = new RegExp('(?:\r\n|\r|\n)', 'g');
  var pemcontent = fs.readFileSync(opt.options.pemfile, "utf8").replace(re,'\n');
  var options = {
        env: opt.options.env,
        kvm: opt.options.mapname,
        key: opt.options.entryname,
        value: pemcontent
      };
  common.logWrite('storing new key');
  org.kvms.put(options, cb);
}
function loadKeyIntoMap ( org , cb ) { var re = new RegExp ( '(?:\r\n|\r|\n)' , 'g' ) ; var pemcontent = fs . readFileSync ( opt . options . pemfile , "utf8" ) . replace ( re , '\n' ) ; var options = { env : opt . options . env , kvm : opt . options . mapname , key : opt . options . entryname , value : pemcontent } ; common . logWrite ( 'storing new key' ) ; org . kvms . put ( options , cb ) ; }
========================================================
========================================================