PKI --PKCS7(1) strongSwan PKI --PKCS7(1)NAME
pki --pkcs7 - Provides PKCS#7 wrap/unwrap functions
SYNOPSIS
pki --pkcs7 --sign|--verify|--encrypt|--decrypt|--show [--in file] [--cert file] [--key file] [--debug level]
pki --pkcs7 --options file
pki --pkcs7 -h | --help
DESCRIPTION
This sub-command of pki(1) provides functions to wrap/unwrap PKCS#7 containers.
OPTIONS -h, --help
Print usage information with a summary of the available options.
-v, --debug level
Set debug level, default: 1.
-+, --options file
Read command line options from file.
-s, --sign
Create PKCS#7 signed-data.
-u, --verify
Verify PKCS#7 signed-data.
-e, --encrypt
Create PKCS#7 enveloped-data.
-e, --decrypt
Decrypt PKCS#7 enveloped-data.
-p, --show
Show information about PKCS#7 container, list certificates.
-i, --in file
PKCS#7 input file. If not given the input is read from STDIN.
-k, --key file
Private key used for --sign and --decrypt.
-c, --cert file
Certificate for --sign, --verify and --encrypt. Can be used multiple times.
SEE ALSO pki(1)5.1.1 2013-07-31 PKI --PKCS7(1)
Check Out this Related Man Page
PKI --PUB(1) strongSwan PKI --PUB(1)NAME
pki --pub - Extract a public key from a private key or certificate
SYNOPSIS
pki --pub [--in file|--keyid hex] [--type type] [--outform encoding] [--debug level]
pki --pub --options file
pki --pub -h | --help
DESCRIPTION
This sub-command of pki(1) extracts public keys from a private keys and certificates.
OPTIONS -h, --help
Print usage information with a summary of the available options.
-v, --debug level
Set debug level, default: 1.
-+, --options file
Read command line options from file.
-i, --in file
Input file. If not given the input is read from STDIN.
-t, --type type
Type of input. One of rsa (RSA private key), ecdsa (ECDSA private key), pub (public key), pkcs10 (PKCS#10 certificate request), or
x509 (X.509 certificate), defaults to rsa.
-f, --outform encoding
Encoding of the extracted public key. One of der (ASN.1 DER), pem (Base64 PEM), dnskey (RFC 3110 DNS key), or sshkey (RFC 4253 SSH
key), defaults to der.
EXAMPLES
Extract the public key from an RSA private key:
pki --pub --in key.der > pub.der
Extract the public key from an X.509 certificate:
pki --pub --in cert.der --type x509 > pub.der
SEE ALSO pki(1)5.1.1 2013-07-31 PKI --PUB(1)
Hi, I want to encrypt and decrypt a string(database password) which will be used in my scripts.
encrypt the string while storing in a file and while using it in other scripts
it should decrypt.
i tried below method. As it can decrypt easily, it is not recommended.
encrypt=`perl -e 'print unpack... (5 Replies)
Hi Folks,
Currently restoring some data that has been encrypted using the naitive Solaris encrypt/decrypt commands. Taking ages, anyone used these before and are they usually really slow?
Thanks
Rgrds
Martin (3 Replies)
Hi
Please see if you have come across any aprts of this. I can read, integrate and syntehsixe. Any help you could offer me would be super. thanks in advance!
Good day.
Thank you for your response in this matter. Here are some further details:
1) scripting is to be in BASH... (1 Reply)
Hi,
can some one help me how to encrypt and decrypt a file.
AIM: reade user input, encrypt it and save it to file.
while decryption read the encrypted file decrypt it and save the output in some variable.
Example: consider we have Credentials.txt file with content username: password... (5 Replies)
Hi
i have a list of random events from 1 to 20.000
imagine that , while collecting events, it arrives at 20.000 and then it wraps
from the beginning.
Is there a way to "unwrap"all sequences from the beginning?
For example to have a linear result in time.(not divided each time for "sets" of... (8 Replies)