How is your experience with the OutSystems Community?
18
Views
1
Comments
How to generate private and public key?
Question
Application Type
Mobile

hi there,

i am wondering How to generate asymmetric private and public key?

regards and thanks

2024-01-31 05-29-41
Akshay Deshpande

Hello IQ78

OutSystems doesn't provide a built-in feature to generate asymmetric key pairs. Typically, you generate them using a trusted tool like OpenSSL and then use the keys in your application.

Using OpenSSL:

  1. Install OpenSSL (if it's not already installed).
  2. Generate the private key:

    openssl genpkey -algorithm RSA -out private_key.pem -pkeyopt rsa_keygen_bits:2048

  3. Generate the public key from the private key:

    openssl rsa -pubout -in private_key.pem -out public_key.pem

  4. You will now have:
    • private_key.pem – Keep this secure and never share it.
    • public_key.pem – Share this with the party that needs to verify signatures or encrypt data.

If you're using these keys in OutSystems, you can store them securely (for example, using a secure secret management solution or other secure storage mechanism based on your deployment architecture).

Thanks and Regards,
Akshay Deshpande

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.