Linux/UNIX: Installation

Installation and Removal

Installing on Debian Linux based distribution
 [user@deb-host ~]# dpkg -i Smartcrypt_CLI-15.10.0034-x86_64.deb
Removing on Debian Linux based distribution
[user@deb-host ~]# dpkg -r pkzip-server
Installing on RPM Linux based distribution
[user@rhel-host ~]# rpm -i Smartcrypt_CLI-15.10.0034-x86_64.rpm
Removing on RPM Linux based distribution
[user@rhel-host ~]# rpm -qa | grep PK
PKZIP_Server-15.10.0034-1.x86_64
[user@rhel-host ~]# rpm -e PKZIP_Server
Installing on Solaris
SPARC
# pkgadd -d Smartcrypt_CLI-15.10.0034-sun4u.pkg all
x86
# pkgadd -d Smartcrypt_CLI-15.10.0034-i86pc.pkg all
Removing from Solaris
# pkgrm PKWpkzs
Installing on AIX
# installp -a -d <filename>.bff all
Removing from AIX
# installp -u pkzip-server.\*

Starting and Stopping the Agent

Running the program will automatically start the agent. If you wish the agent to start with a specific set of credentials, please see the next section on managing login credentials.

Starting the Agent
[user@rhel-host ~]$ pkzipc
Stopping the Agent on Linux
[user@rhel-host ~]$ /usr/pkware/pkzip/bin/pkagent --stop
PKWARE pkagent for Linux 15.10.0034
Portions copyright (C) 1989-2016 PKWARE, Inc.
Stopping agent, PID=2991
Stopping the Agent on Solaris
$ /opt/pkware/pkzip/bin/pkagent --stop
PKWARE pkagent for Solaris 15.10.0034
Portions copyright (C) 1989-2016 PKWARE, Inc.
Stopping agent, PID=2991
Help
[user@rhel-host ~]$ pkzipc -help
Smartcrypt(TM) Version 15 for Linux X86-64 Licensed Version 
Portions copyright (C) 1989-2016 PKWARE, Inc.  All Rights Reserved. 
Reg. U.S. Pat. and Tm. Off.  Patent No. 5,051,745  7,793,099  7,844,579 
7,890,465  7,895,434;  Other patents pending  
Usage: PKZIPC [command] [options] zipfile [@list] [files...]
   View .zip file contents: PKZIPC zipfile
   Create a .zip file:      PKZIPC -add zipfile file(s)...
   Extract files from .zip: PKZIPC -extract zipfile
The above usages are only basic examples of Smartcrypt's capability.

Enter 'C' to list Commands, 'O' to list Options or <Esc> to exit

Login Credentials

Creating your managed login credentials in the settings.json file
/usr/pkware/pkzip/bin/pkagent --config --email user@domain.ext --iwa password
Creating your unmanaged login credentials in the settings.json file
 /usr/pkware/pkzip/bin/pkagent --config --email user@domain.ext --master password

Listing Current Smartkeys

Listing current Smartkeys
ubuntu@ip-172-31-55-199:~$ pkzipc -listsm
Smartcrypt(TM) Version 15 for Linux X86-64 Licensed Version 
Portions copyright (C) 1989-2015 PKWARE, Inc.  All Rights Reserved. 
Reg. U.S. Pat. and Tm. Off.  Patent No. 5,051,745  7,793,099  7,844,579 
7,890,465  7,895,434;  Other patents pending

 ---------------------------------------------------------------- 
                             Smartkeys                            
 -------------------------------  ------------------------------- 
             Name/URN                        Owner                
 -------------------------------  ------------------------------- 
 ubuntu's Shareable Smartkey      ubuntu@smartcrypt.com           
 default--MA_16_pRVZLqxK4LtDuUZPJQ0NQn4WVSbG3oywEHIcSEcJvcU=
 ---------------------------------------------------------------- 
 Personal Smartkey                ubuntu@smartcrypt.com           
 priv--MA_16_pRVZLqxK4LtDuUZPJQ0NQn4WVSbG3oywEHIcSEcJvcU=
 ---------------------------------------------------------------- 
Encrypting a file to a Smartkey encrypted archive
ubuntu@test-box:~$ pkzipc -add ~/sc-installs/file1.zip ~/sc-installs/test-smartkey.txt -smartkey=default--MA_16_pRVZLqxK4LtDuUZPJQ0NQn4WVSbG3oywEHIcSEcJvcU=
Smartcrypt(TM) Version 15 for Linux X86-64 Licensed Version 
Portions copyright (C) 1989-2015 PKWARE, Inc.  All Rights Reserved. 
Reg. U.S. Pat. and Tm. Off.  Patent No. 5,051,745  7,793,099  7,844,579 
7,890,465  7,895,434;  Other patents pending
* Strongly encrypting files with a passphrase using AES (256-bit)
* Using UTF-8 file names and comments
* Using default compression method
Creating .ZIP: /home/ubuntu/sc-installs/file1.zip
  Adding File: test-smartkey.txt Deflating    ( 0.0%), Encrypting, done.
View passphrase on Smartkey encrypted archive
ubuntu@test-box:~$ pkzipc -test -smartkeypass ~/sc-installs/file1.zip</p><pre>Smartcrypt(TM) Version 15 for Linux X86-64 Licensed Version 
Portions copyright (C) 1989-2015 PKWARE, Inc.  All Rights Reserved. 
Reg. U.S. Pat. and Tm. Off.  Patent No. 5,051,745  7,793,099  7,844,579 
7,890,465  7,895,434;  Other patents pending

Testing files from .ZIP: /home/ubuntu/sc-installs/file1.zip


Smartkey passphrase: P4EhUuGKuaoDIJk3YKM4LVyhH0Qhin/aHjPSkwUgMRo=

Testing: test-smartkey.txt  OK
Create new Smartkey encrypted archive and output passphrase
ubuntu@test-box:~$ pkzipc -add ~/sc-installs/file3.zip ~/sc-installs/test-smartkey.txt -smartkey=default--MA_16_pRVZLqxK4LtDuUZPJQ0NQn4WVSbG3oywEHIcSEcJvcU= -smartkeypass

Smartcrypt(TM) Version 15 for Linux X86-64 Licensed Version 
Portions copyright (C) 1989-2015 PKWARE, Inc.  All Rights Reserved. 
Reg. U.S. Pat. and Tm. Off.  Patent No. 5,051,745  7,793,099  7,844,579 
7,890,465  7,895,434;  Other patents pending
* Strongly encrypting files with a passphrase using AES (256-bit)
* Using UTF-8 file names and comments
* Using default compression method

Creating .ZIP: /home/ubuntu/sc-installs/file3.zip

Smartkey passphrase: YKlOSQMq7opMbPwKRBEin/PGQ9vBoVPaxMOvdO+n5ZI=

  Adding File: test-smartkey.txt Deflating    ( 0.0%), Encrypting, done.
Commands
Command Description Example
-SmartkeyCreate Create a new smartkey  pkzipc -smartkeycreate=test
-SmartkeyModify Use SmartkeyModify to change a Smartkey’s name, and access rights to data encrypted with this Smartkey.  pkzipc -smartkeymodify=Test -smartkeyn="Test A" -smartkeya=a@example.com
pkzipc -smartkeymodify="Test AB" -smartkeyn="Test AC" -smartkeya=c@example.org -smartkeyd=b@example.net
pkzipc -smartkeymodify="urn=smartcrypt--something-something" -smartkeys
-SmartkeyRemove Delete any Smartkey with the SmartkeyRemove command  pkzipc -smartkeyremove=”urn=Smartcrypt--something-something”
-Listsmartkeys Displays a list of your Smartkeys and with =, displays a list of the users allowed to use that smartkey. pkzipc -listsm
pkzipc -listsm="Accounting"
Options
Command Description Example
-Smartkey Specify a smartkey to be used pkzipc -add -smartkey="urn=smartcrypt--something-something" save.zip *
pkzipc -add -smartkey="Accounting" save.zip *
-SmartkeyAllow Allows specified recipient(s) access to the Smartkey. pkzipc -smartkeym="urn=smartcrypt--something-something" -smartkeya=a@example.com -smartkeya=b@example.net
-SmartkeyDeny Denies specified recipient(s) access to the Smartkey. pkzipc -smartkeym="urn=smartcrypt--something-something" -smartkeyd=a@example.com -smartkeyd=b@example.net
pkzipc -smartkeym="urn=smartcrypt--something-something" -smartkeyd=@file.txt
-SmartkeyName Renames the specified Smartkey

pkzipc -smartkeym="urn=smartcrypt--something-something" -smartkeyn="Test123"

pkzipc -smartkeym="Test 123" -smartkeyn="Test 12345"

-SmartkeyPass Display or write the random passphrase used in Smartkey based encryption to the console or a file.

pkzipc -add -smartkey="Sales Materials" -smartkeypass
pkzipc -add -smartkey="Sales Materials" -smartkeypass=mypass.txt

-SmartkeySet Specifies recipients allowed access to the Smartkey, denying all others. pkzipc -smartkeym="urn=smartcrypt--something-something"-smartkeys=a@example.com -smarkeys=b@example.net
pkzipc -smartkeym="urn=smartcrypt--something-something" -smartkeys=@file.txt
pkzipc -smartkeym="urn=smartcrypt--something-something" -smartkeys