Query on PGP Keygen using GNUPG
Santhosh Kumar
santhosh5619 at gmail.com
Tue Apr 8 06:04:38 CEST 2014
Hi Team,
I'm trying to execute the PGP Key generation using "SUNWgnupg" available on
Solaris 11 with CLI option mentioned below.
/usr/bin/gpg2 --secret-keyring /home2/d1/owner/.gnupg/secring.gpg --keyring
/home2/d1/owner/.gnupg/pubring.gpg --gen-key --local-user [lindex $argv 0]*
<arguments to be passed for Keysize, key algorithm etc>*
May I know the attributes to be used for giving Key Size as 2048 , Key
algorithm as RSA etc. in single CLI instead of routine way of generating
Key.
Appreciate if you can help me with quick reply to proceed with my work. PFA
for server details and version present on Solaris 11 server
Thanks,
Santhosh Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20140408/12c2209f/attachment.html>
-------------- next part --------------
# uname -a
SunOS <serverName> 5.11 11.1 sun4v sparc sun4v
# uname -X
System = SunOS
Node = <serverName>
Release = 5.11
KernelID = 11.1
Machine = sun4v
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 32
# cat /etc/release
Oracle Solaris 11.1 SPARC
Copyright (c) 1983, 2013, Oracle and/or its affiliates. All rights reserved.
Assembled 06 November 2013
===========================================================================================
$ /usr/bin/gpg2 --version
gpg (GnuPG) 2.0.17
libgcrypt 1.4.5
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH, CAMELLIA128,
CAMELLIA192, CAMELLIA256
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
========================================================================================
Syntax: gpg [options] [files]
sign, check, encrypt or decrypt
default operation depends on the input data
Commands:
-s, --sign make a signature
--clearsign make a clear text signature
-b, --detach-sign make a detached signature
-e, --encrypt encrypt data
-c, --symmetric encryption only with symmetric cipher
-d, --decrypt decrypt data (default)
--verify verify a signature
-k, --list-keys list keys
--list-sigs list keys and signatures
--check-sigs list and check key signatures
--fingerprint list keys and fingerprints
-K, --list-secret-keys list secret keys
--gen-key generate a new key pair
--gen-revoke generate a revocation certificate
--delete-keys remove keys from the public keyring
--delete-secret-keys remove keys from the secret keyring
--sign-key sign a key
--lsign-key sign a key locally
--edit-key sign or edit a key
--passwd change a passphrase
--export export keys
--send-keys export keys to a key server
--recv-keys import keys from a key server
--search-keys search for keys on a key server
--refresh-keys update all keys from a keyserver
--import import/merge keys
--card-status print the card status
--card-edit change data on a card
--change-pin change a card's PIN
--update-trustdb update the trust database
--print-md print message digests
--server run in server mode
Options:
-a, --armor create ascii armored output
-r, --recipient USER-ID encrypt for USER-ID
-u, --local-user USER-ID use USER-ID to sign or decrypt
-z N set compress level to N (0 disables)
--textmode use canonical text mode
-o, --output FILE write output to FILE
-v, --verbose verbose
-n, --dry-run do not make any changes
-i, --interactive prompt before overwriting
--openpgp use strict OpenPGP behavior
(See the man page for a complete listing of all commands and options)
Examples:
-se -r Bob [file] sign and encrypt for user Bob
--clearsign [file] make a clear text signature
--detach-sign [file] make a detached signature
--list-keys [names] show keys
--fingerprint [names] show fingerprints
Please report bugs to <http://bugs.gnupg.org>.
===========================================================================================
More information about the Gnupg-users
mailing list