blob: 5454ee94369e2bc4b65c11f59263d6ccb8a85aee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
PKCS10Client -d ~/.dogtag/pki-tomcat/ca/alias -p Secret.123 \
-a rsa -l 1024 \
-n "uid=testuser,ou=people,dc=example,dc=com" \
-o /tmp/httpclient.pem
AtoB /tmp/httpclient.pem /tmp/httpclient.bin
cat > httpclient.cfg << EOF
host=$HOSTNAME
port=8443
secure=true
input=/tmp/httpclient.bin
output=/tmp/httpclient.out
tokenname=internal
dbdir=/root/.dogtag/pki-tomcat/ca/alias
clientmode=false
password=Secret.123
nickname=caadmin
servlet=/ca/ee/ca/profileSubmit
EOF
HttpClient httpclient.cfg
|