I want to create certificate with public and private key. Then I want to extract public key from it and with the help of public key I want to encrypt data.
On the receiver side I want to decrypt data.
How can i create required certificate? Sample code for encryption and decryption.
You can use OpenSSL for creating a certificate with public and private keys.
Using that certificate you can generate the public from it.
The following video series will guide you in that process
https://www.youtube.com/watch?v=1xtBkukWiek