Home >
Support >
Online Manual >
How to use AEP PRO >
Command Line Interface >
Commands >
"CHECKPUBKEYRSA" - check public key file against the encrypted file
"CHECKPUBKEYRSA" - check public key file against the encrypted file
This command is used to check whether the specified public key file was used
for encrypted file or not.
Use -addkeyhash switch to add hash information using command encryptrsa.
Syntax
CHECKPUBKEYRSA="c:\pathto\publickeyfile.aepkey"
c:\path2\encryptedfile.aep
or
CHECKPUBKEYRSA="c:\pathto\publickeyfile.aepkey" c:\path2\*.aep
Compatible switches
-RECURSE
-EXCLUDE
This command generates the report looking
like
CHECKPUBKEYRSA="C:\aepkeys\test_2048bit_public.aepkey"
"C:\temp\fakedisk\Accounting\*.*"
Checking RSA Key
The Legend:
[YES] - yes, this public key file was used
for file encryption
[NO] - no, another public key file was used
for encryption
[NOHASH] - this file has no hash information
about public key
[ERR] - other error
Processing encrypted file(s)...
C:\temp\fakedisk\Accounting\Affiliated
Company.doc.aep .... [NOHASH]
C:\temp\fakedisk\Accounting\Lower of Cost or
Market.xls.aep .... [YES]
Errorlevels
It is possible to analyze the returned code in your batch script in case when you
specified single encrypted file as the program argument, i.e. not the file mask. In this case aepcmd returns
errorlevels:
0 - it is the public key file was used for encryption of this file. This code
is also retured, when you specified single file, but it does not exist.
6 - this encrypted file has no hash information about used public key file
(-addkeyhash switch was not used together with encryptrsa command).
7 - the specified public key file is not valid for this encrypted file. I.e.
another public key file was used for encryption
other code - error
Back to the Table of Contents