I am on node version: v10.14.1 and I generate keyPairs with this code:
generateKeyPair('rsa', {
modulusLength: 4096,
publicKeyEncoding: {
type: 'pkcs1',
format: 'pem'
},
privateKeyEncoding: {
type: 'pkcs8',
format: 'pem',
cipher: 'aes-256-cbc',
passphrase: ''
}
}, (err, publicKey, privateKey) => {
// Do stuff
});
Run Code Online (Sandbox Code Playgroud)
This will create a public key in this format:
-----BEGIN RSA PUBLIC KEY-----
...
-----END RSA PUBLIC KEY-----
Run Code Online (Sandbox Code Playgroud)
Unfortunately sometimes different formats are needed. In my case to upload public key to AWS the OpenSSH …
我已经搜索了所有文档,但仍然没有找到为什么在下面的文件命名约定中有前缀以及 c000 是什么:
文件:/Users/stephen/p/spark/f1/part-00000-445036f9-7a40-4333-8405-8451faa44319-c000.snappy.parquet