Encrypt file with keystore's trusted certificate entry of type RSA
Workflow
Fill in all required fields
==> enable action button located at bottom of active window
Click action button
==> new window shows up:
Window displays contents of selected keytore
An additional column (first one, on the left) displays valid entries.
Click on valid row
==> respective alias is displayed at bottom
Right below, enter respective alias's password, then click OK button
Memo: no password needed for PKCS12 keystores.
Limitations
Choice of encryption algorithm:
. RSA/ECB/PKCS1Padding
. RSA/NONE/PKCS1Padding
. RSA/NONE/OAEPWithSHA1AndMGF1Padding
Important notice:
Data size to encrypt should not exceed the following in bytes:
([key-size] / 8) - 11