IPSEC_SCEPCLIENT(8) | IPSEC_SCEPCLIENT(8) |
NAME¶
ipsec scepclient - Client for the SCEP protocol
SYNOPSIS¶
ipsec scepclient [argument ...]
ipsec scepclient --help
ipsec scepclient --version
DESCRIPTION¶
scepclient is a client implementation of Cisco System's Simple Certificate Enrollment Protocol (SCEP) written for Linux strongSwan <http://www.strongswan.org>. scepclient is designed to be used for certificate enrollment on machines using the OpenSource IPsec solution strongSwan.
FEATURES¶
scepclient implements the following features of SCEP:
- Automatic enrollment of client certificate using a preshared secret
- Manual enrollment of client certificate. Offline fingerprint check required!
- Acquisition of CA certificate(s)
OPTIONS¶
Basic Startup Options¶
-v, --version
-h, --help
General Options¶
-u, --url url
-+, --optionsfrom filename
-f, --force
-q, --quiet
Options for CA Certificate Acquisition¶
-o, --out cacert[=filename]
The default filename is $CONFDIR/ipsec.d/cacerts/caCert.der.
Options For Certificate Enrollment¶
-i, --in type[=filename]
Supported values for type:
- pkcs1
- RSA private key in PKCS#1 file format. If no input of this type is
specified, a RSA key gets generated.
The default filename is $CONFDIR/ipsec.d/private/myKey.der. - pkcs10
- PKCS#10 certificate request to be used in the SCEP request. If no input of
this type is specified, a request is generated.
The default filename is $CONFDIR/ipsec.d/req/myReq.der. - cacert-enc
- CA certificate to encrypt the SCEP request. Has to be specified for
certificate enrollment.
The default filename is $CONFDIR/ipsec.d/cacerts/caCert.der. - cacert-sig
- CA certificate to check signature of SCEP reply. Has to be specified for
certificate enrollment.
The default filename is $CONFDIR/ipsec.d/cacerts/caCert.der. - cert-self
- Certificate to be used in the SCEP request. If it is not specified a
self-signed certificate is generated automatically.
The default filename is $CONFDIR/ipsec.d/certs/selfCert.der.
-k, --keylength bits
-D, --days days
-S, --startdate YYMMDDHHMMSSZ
-E, --enddate YYMMDDHHMMSSZ
-d, --dn dn
-s, --subjectAltName type=value
Supported values for type:
-p, --password pw
- - In automatic mode, this password corresponds to the preshared secret for the given enrollment.
- - In manual mode, this password can be used to later revoke the corresponding certificate.
-a, --algorithm [type=]algo
Supported values for type:
- enc
- symmetric encryption algorithm in PKCS#7
- dgst
- hash algorithm for message digest in PKCS#7
- sig
- hash algorithm for the signature in PKCS#10
If type is not specified enc is assumed.
Supported values for algo (enc):
- des
- DES-CBC encryption (key size = 56 bit). Default.
- 3des
- Triple DES-EDE-CBC encryption (key size = 168 bit).
- aes128
- AES-CBC encryption (key size = 128 bit).
- aes192
- AES-CBC encryption (key size = 192 bit).
- aes256
- AES-CBC encryption (key size = 256 bit).
- camellia128
- Camellia-CBC encryption (key size = 128 bit).
- camellia192
- Camelllia-CBC encryption (key size = 192 bit).
- camellia256
- Camellia-CBC encryption (key size = 256 bit).
Supported values for algo (dgst or sig):
md5 (default), sha1, sha256, sha384, sha512
-o, --out type[=filename]
Supported values for type:
- pkcs1
- RSA private key in PKCS#1 file format. If specified, the RSA key used for
enrollment is stored in file filename. If none of the types
listed below are specified, scepclient will stop after outputting
this file.
The default filename is $CONFDIR/ipsec.d/private/myKey.der. - pkcs10
- PKCS#10 certificate request. If specified, the PKCS#10 request used or
certificate enrollment is stored in file filename. If none of the
types listed below are specified, scepclient will stop after
outputting this file.
The default filename is $CONFDIR/ipsec.d/req/myReq.der. - pkcs7
- PKCS#7 SCEP request as it is sent using HTTP to the SCEP server. If
specified, this SCEP request is stored in file filename. If none of
types listed below is not specified, scepclient will stop
after outputting this file.
The default filename is $CONFDIR/ipsec.d/req/pkcs7.der. - cert-self
- Self-signed certificate. If specified the self-signed certificate is
stored in file filename.
The default filename is $CONFDIR/ipsec.d/certs/selfCert.der. - cert
- Enrolled certificate. This type must be specified for certificate
enrollment. The enrolled certificate is stored in file filename.
The default filename is set to $CONFDIR/ipsec.d/certs/myCert.der.
-m, --method method
Supported values for method:
-t, --interval seconds
-x, --maxpolltime seconds
Debugging Output Options:¶
-l, --debug level
EXAMPLES¶
ipsec scepclient --out caCert --url http://scepserver/cgi-bin/pkiclient.exe -f
ipsec scepclient --out pkcs1=joeKey.der -k 1024
ipsec scepclient --in pkcs1=joeKey.der --out pkcs10=joeReq.der
\
--dn ”C=AT, CN=John Doe” -s email=john@doe.com -p
mypassword
ipsec scepclient --out pkcs1=joeKey.der --out cert==joeCert.der
\
--dn ”C=CH, CN=John Doe” -k 512 -p 5xH2pnT7wq \
--url http://scep.hsr.ch/cgi-bin/pkiclient.exe \
--in cacert-enc=caCert.der --in cacert-sig=caCert.der
BUGS¶
--optionsfrom seems to have parsing problems reading option files containing strings in quotation marks.
COPYRIGHT¶
Copyright (C) 2005 Jan Hutter, Martin Willi
Hochschule fuer Technik Rapperswil
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
2012-05-11 | strongSwan |