repo.or.cz
/
anytun.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
svn cleanup
[anytun.git]
/
openvpn
/
easy-rsa
/
build-req-pass
blob
829b286b5918bf9b3f3aa89964ea82ba3cab4c7e
1
#!/bin/sh
2
3
#
4
# Like build-req, but protect your private key
5
# with a password.
6
#
7
8
if
test
$#
-ne
1
;
then
9
echo
"usage: build-req-pass <name>"
;
10
exit
1
11
fi
12
13
if
test
$KEY_DIR
;
then
14
cd
$KEY_DIR
&&
\
15
openssl req
-days
3650
-new -keyout
$1
.key
-out
$1
.csr
-config
$KEY_CONFIG
16
else
17
echo
you must define KEY_DIR
18
fi