Annotation of embedaddon/strongswan/src/pki/man/pki---pub.1.in, revision 1.1.1.1

1.1       misho       1: .TH "PKI \-\-PUB" 1 "2013-07-31" "@PACKAGE_VERSION@" "strongSwan"
                      2: .
                      3: .SH "NAME"
                      4: .
                      5: pki \-\-pub \- Extract a public key from a private key or certificate
                      6: .
                      7: .SH "SYNOPSIS"
                      8: .
                      9: .SY pki\ \-\-pub
                     10: .RB [ \-\-in
                     11: .IR file | \fB\-\-keyid\fR
                     12: .IR hex ]
                     13: .OP \-\-type type
                     14: .OP \-\-outform encoding
                     15: .OP \-\-debug level
                     16: .YS
                     17: .
                     18: .SY pki\ \-\-pub
                     19: .BI \-\-options\~ file
                     20: .YS
                     21: .
                     22: .SY "pki \-\-pub"
                     23: .B \-h
                     24: |
                     25: .B \-\-help
                     26: .YS
                     27: .
                     28: .SH "DESCRIPTION"
                     29: .
                     30: This sub-command of
                     31: .BR pki (1)
                     32: extracts public keys from a private keys and certificates.
                     33: .
                     34: .SH "OPTIONS"
                     35: .
                     36: .TP
                     37: .B "\-h, \-\-help"
                     38: Print usage information with a summary of the available options.
                     39: .TP
                     40: .BI "\-v, \-\-debug " level
                     41: Set debug level, default: 1.
                     42: .TP
                     43: .BI "\-+, \-\-options " file
                     44: Read command line options from \fIfile\fR.
                     45: .TP
                     46: .BI "\-i, \-\-in " file
                     47: Input file. If not given the input is read from \fISTDIN\fR.
                     48: .TP
                     49: .BI "\-x, \-\-keyid " hex
                     50: Smartcard or TPM private key object handle in hex format with an optional
                     51: 0x prefix.
                     52: .TP
                     53: .BI "\-t, \-\-type " type
                     54: Type of input. One of \fIpriv\fR (private key), \fIrsa\fR (RSA private key),
                     55: \fIecdsa\fR (ECDSA private key), \fIpub\fR (public key), \fIpkcs10\fR (PKCS#10
                     56: certificate request), or \fIx509\fR (X.509 certificate), defaults to \fIpriv\fR.
                     57: .TP
                     58: .BI "\-f, \-\-outform " encoding
                     59: Encoding of the extracted public key. One of \fIder\fR (ASN.1 DER), \fIpem\fR
                     60: (Base64 PEM), \fIdnskey\fR (RFC 3110 DNS key), or \fIsshkey\fR (RFC 4253 SSH
                     61: key), defaults to \fIder\fR.
                     62: .
                     63: .SH "EXAMPLES"
                     64: .
                     65: Extract the public key from an RSA private key:
                     66: .PP
                     67: .EX
                     68:   pki --pub --in key.der > pub.der
                     69: .EE
                     70: .PP
                     71: Extract the public key from an X.509 certificate:
                     72: .PP
                     73: .EX
                     74:   pki --pub --in cert.der --type x509 > pub.der
                     75: .EE
                     76: .PP
                     77: .
                     78: .SH "SEE ALSO"
                     79: .
                     80: .BR pki (1)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>