I'm trying to duplicate what is used by the key management systems for Google, AWS and IBM's cloud without calling out to openssl from my golang app:
$ echo "hello" | openssl pkeyutl -encrypt -pubin -inkey localpubkey.crt -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256 -pkeyopt rsa_mgf1_md:sha256 | openssl pkeyutl -decrypt -inkey localkey.pem -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256 -pkeyopt rsa_mgf1_md:sha256
hello
Doc links:
Thanks!
I'm trying to duplicate what is used by the key management systems for Google, AWS and IBM's cloud without calling out to openssl from my golang app:
Doc links:
Thanks!