I have a plain text public key coming from client. Now we don't want to save that public key as it is in the code/config, we want to create certificate out of it so that we can install it in the certificate store which is easy to maintain in case of the change in the public key. (I tried converting it to the CER, DER, CRT using OPENSSL but it is not working)
This is the public key I have:
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAl1nIJ9A6onY2dbNUY0I6OE7971BtDn+lpSb8Ce0+0mJfwldjYnWwoeYekDnkWMMzvQoDlrjKYW7WOSW22oZLJoJMlnSSGQtPp8afEIksjOiGSK+UaRKdDJVLfmqwEzGLndVnhu6dDxcIGAtzz7y38dcmH1rKlmZ36pqWBVPNcqQSSDt3E9F26st9ftNjTamw/hChGBGSJwpNVgtuNNf1W+Ts3RXhQpxBkEcYLz3rZe2F35rjsVi8iEEgXa18mzcKOgAAP9KipCegQfR80CoDAAdUx4g630QMHKn4sETWu3ztu3beWIoyLzgEZgQUn83bTHqGKQdAmdibk9bj7MI5jwIDAQAB