will help you In our applications, we store public and private keys in DER format so they can be used and manipulated outside java more easily. In our case, the private keys do not have passwords on them. To convert the private key to something more easily usable in java:
will help you You have your private key in the safe, and publish your public key. When you create a license you encrypt it with your private key. The client can only decrypt it with your public key. If you want to restrict your license to a client, ask the client to generate their keypair, and send their public key to you. You then encrypt the license with their public key, then sign it (or encrypt it again) with your private key.
I wish did fix the issue. Asymmetric keys are never used for encrypting messages (too slow, has a size limit, etc.), only for encrypting small buffers, like symmetric keys for messages. When you encrypt a message with an asymm. key, you are in fact encrypting a symmetric key which encrypts the message.
How should I secure the Private Key when using Asymmetric RSA encryption?
I wish this helpful for you You can use Windows RSA Key containers to store the key. The key can be installed / created by the aspnet_regiis.exe tool that ships with the .NET framework. Here is a walkthrough.
Asymmetric public / private key encryption RSA with nodeJS and Objective-C