- From: Peter Bielak, Executive Manager <peter@safebash.com>
- Date: Tue, 16 Aug 2016 14:09:40 +0200
- To: "public-webcrypto-comments" <public-webcrypto-comments@w3.org>
- Message-ID: <1569341d5f8.117e0ccd2260987.2657305414836077413@safebash.com>
Anders thank you for help. I need to generate private key on client side so that provider cannot see this key. That is why I need WebCrypto, I know that I could generate keys on server using OpenSSL etc. and the key needs to be stored in database so the only thing user has to care about is his password, it also needs to be in PKCS#8 PEM format so this key can be used for encryption in Swift on iDevices and in browser. One person from StackOverflow figured it out, here's my question: http://stackoverflow.com/questions/38413391/generate-rsa-key-pair-using-webcrypto-api-and-protect-it-with-passphrase but when using forge JS library it somehow breaks the key and it cannot be imported as CryptoKey - DOMException error - nothing more I did this: my other question: http://stackoverflow.com/questions/38677742/cryptokey-arraybuffer-to-base64-and-back CryptoKey to base64 and back works but when encrypted using forge and imported back - DOMException Thanks again ---- On Tue, 16 Aug 2016 13:45:32 +0200 Anders Rundgren <anders.rundgren.net@gmail.com>wrote ---- On Aug 16, 2016 12:50, "Peter Bielak, Executive Manager" <peter@safebash.com> wrote: > > I think the question should have been: > How do I generate passphrase protected encrypted private key - pkcs#8 using WebCrypto API? > It is surely doable but since protected keys is already a part of WebCrypto there is no direct support for your use-case. I have a feeling you are on the wrong track. anders
Received on Tuesday, 16 August 2016 12:11:03 UTC