Skip to main content

Linux/UNIX: Installation


Linux/Unix Installation and Removal

Installing on Debian Linux based distribution

CODE
 [user@deb-host ~]# dpkg -i Smartcrypt_CLI-15.10.0034-x86_64.deb

Removing on Debian Linux based distribution

CODE
[user@deb-host ~]# dpkg -r pkzip-server

Installing on RPM Linux based distribution

CODE
[user@rhel-host ~]# rpm -i Smartcrypt_CLI-15.10.0034-x86_64.rpm

Removing on RPM Linux based distribution

CODE
[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

CODE
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

CODE
# pkgrm PKWpkzs

Installing on AIX

CODE
# installp -a -d <filename>.bff all

Removing from AIX

CODE
# 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

CODE
[user@rhel-host ~]$ pkzipc

Stopping the Agent on Linux

CODE
[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

CODE
$ /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

CODE
[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

CODE
/usr/pkware/pkzip/bin/pkagent --config --interactive

PKWARE pkagent for Linux 17.10.0017
Portions copyright (C) 1989-2021 PKWARE, Inc.

Enter your Smartcrypt Server URL (optional): https://<SEMURL>/mds
Enter the email address: michael@supportad.int
Does the account "michael@supportad.int" authenticate with Active Directory
credentials [y/n]: y
Enter the Active Directory credentials for "michael@supportad.int": **********
PKMeta Initializing - Built Jan 13 2022 at 15:35:25
PKMeta initialized
Initialized Cluster Evaluator
Would you like to use a Smartcard for Multi-factor authentication (MFA)? [y/N]:
n

Click here to expand...

This method is not recommended as it can leave passwords exposed in history.

Creating your managed login credentials in the settings.json file

CODE
/usr/pkware/pkzip/bin/pkagent --config --email user@domain.ext --iwa password

Creating your unmanaged login credentials in the settings.json file

CODE
 /usr/pkware/pkzip/bin/pkagent --config --email user@domain.ext --master password

Listing Current Smartkeys

Listing current Smartkeys

CODE
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

CODE
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

CODE
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

CODE
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

CommandDescriptionExample
-SmartkeyCreateCreate a new smartkey pkzipc -smartkeycreate=test
-SmartkeyModifyUse 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
-SmartkeyRemoveDelete any Smartkey with the SmartkeyRemove command pkzipc -smartkeyremove=”urn=Smartcrypt--something-something”
-ListsmartkeysDisplays a list of your Smartkeys and with =, displays a list of the users allowed to use that smartkey.pkzipc -listsm
pkzipc -listsm="Accounting"

Options

CommandDescriptionExample
-SmartkeySpecify a smartkey to be usedpkzipc -add -smartkey="urn=smartcrypt--something-something" save.zip *
pkzipc -add -smartkey="Accounting" save.zip *
-SmartkeyAllowAllows specified recipient(s) access to the Smartkey.pkzipc -smartkeym="urn=smartcrypt--something-something" -smartkeya=a@example.com -smartkeya=b@example.net
-SmartkeyDenyDenies 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
-SmartkeyNameRenames the specified Smartkey

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

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

-SmartkeyPassDisplay 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

-SmartkeySetSpecifies 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





JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.