title: Confused about encryption with public and private keys (which to use for encryption)
body: <p>I am making a licensing system when clients ask my server for a license and I send them a license if they are permitted to have one.</p>
  
  <p>On my current system I encrypt the license using a single private key and have the public key embedded into the client application that they use to decrypt the license.  It works!</p>
  
  <p>Others have told me that I should be encrypting with the public key on the server and distributing the private key to clients.  I have searched the web and can see that sometimes they use the private key to encrypt and other times they use the public key to encrypt.</p>
  
  <p>In this case what am I supposed to do?</p>