0

I'm now comfortable generating public and private keys for each user of a website.

Is there any pro's / con's for generating the Private keys on the client in the browser or on the server?

And once generated is there any best practices for safely storing the users key?

I feel we need to store the key for the user as they can't be trusted to keep it safe and not lose it.

The connection to the website is all over SSL and the data center is ISO-27001 certified.

  • It depends on your usecase. If you were writing a web wallet like blockchain.info, I'd tell you to generate the keys on the client. If you were creating an exchange, and you needed exclusive control of the keys, doing that on the client would be a terrible idea. – Nick ODell Mar 12 '17 at 5:31
  • So if I don't need exclusive key access, generate them on the client. 1) If I do generate them on the client should I ever try to save them to the database, or is it really up to the user who generated the key to store it? 2) If I do need exclusive access, I generate them on the server and save them encrypted again in the database? Any more advice on this route? – Will-In-China Mar 12 '17 at 8:37
  • I can understand why nobody wants to discuss this, holding the keys is like a hot potato, you want them but you don't want them – Will-In-China Mar 13 '17 at 0:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.