How to create a public key from a pre-created private key
Please tell me how to generate a public key from a private key file and output the public key information.
My idea is to register the KeyStore private key file and get the information registered in the KeyStore private key file by some rule.
I checked various information on the internet, but I didn't understand it well, so please tell me concretely how it can be realized.
<What you want to do in the end>
(1) Receive a request at Service Rest, generate a public key from the private key, and output the public key information as a Response value.
(2) Receive the information encrypted using the public key in the service rest process different from (1) as a Request and decrypt it using the private key in Pega.