Skip to main content

How do I use GPG / OpenPGP key rings with PK Protect CLI?

PK Protect's has the ability to utilize GPG and PGP key rings for encryption and decryption operations.

Where does PK Protect look for key rings?

By default, PK Protect looks in four hard coded locations for existing key rings.

  • .gnupg/pubring.gpg
  • .gnupg/secring.gpg
  • .pgp/pubring.pkr
  • .pgp/secring.skr

Setting your own keyring location and name

You can specify your own ke yring location and key ring name using the following environment variables

  • PK_OPENPGP_PUBLIC_RING=<path>/pubring.pkr
  • PK_OPENPGP_SECRET_RING=<path>/secring.skr

Referencing a keyring in the command

  • -pgppublickey=<filename>
  • -pgpsecretkey=<filename>
pkzipc -add -archivetype=pgp -pgppublickey=customer.asc license.gpg license.txt
SecureZIP(R) Server  Version 14 for Linux X86 Registered Version
Portions copyright (C) 1989-2014 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

 Using OpenPGP Public Key: customer.asc
 Using default compression method
 Creating .PGP: license.gpg
 Adding File: license.txt  Deflating    ( 0.0%), done.

JavaScript errors detected

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

If this problem persists, please contact our support.