title: Where does the WebCrypto API store keys?
body: <p>I am using the webcrypto API with some success to encrypt messages between server and client (lets assume I need to do this manually).</p>
  
  <p>My problem is that I need to check if a keypair for the user and server already exists instead of generating a new keypair all the time. Is there a way to check if it exists and retrieve it for decryption of server messages?</p>
  
  <p>To clarify, my <code>privateKey</code> is on the browser and <code>publicKey</code> is sent to server.</p>
  
  <p>I have a nodejs server and plain JS front end.</p>
  
  <p>Thanks in advance.</p>