Using encryption in MaxL scripts
In this recipe, we will retrieve a public key and private key using MaxL commands. Then we will encrypt a MaxL script and modify the command line to successfully run the MaxL command.
Getting ready
To get started, click on Start, select Run, type cmd, and press Enter.
How to do it...
Type in
essmsh –gk
into the command screen and press Enter. The following text will appear. Keep a note of the Public Key and Private Key as they appear on this screen.In EAS, click on File, click on Editors, click on MaxL Script Editor, type the following MaxL script, click on File, then on Save script as, browse to the C drive, type SubVarD in the File Name, and click on OK.
/*Login to database */ login Admin password on localhost; /*Create log*/ spool on to 'C:\Display.txt' /*Display Substitution Variables Before*/ Display variable on database Sample.Basic; logout; spool off; exit;
Return to your command line and type in
essmsh -E scriptname.mxl PUBLIC-KEY
or based on...