update
This commit is contained in:
12
scripts/privateKey.ts
Normal file
12
scripts/privateKey.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
// @ts-ignore
|
||||
import RSA from 'node-rsa';
|
||||
|
||||
/**
|
||||
* Create a private key for a kintone plugin
|
||||
* Copy from https://github.com/kintone/js-sdk/blob/main/packages/create-plugin/src/privateKey.ts
|
||||
*/
|
||||
export const generatePrivateKey = () => {
|
||||
const key = new RSA({ b: 1024 });
|
||||
return key.exportKey('pkcs1-private');
|
||||
};
|
||||
Reference in New Issue
Block a user