Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai
autoca
Commits
c756b263
Commit
c756b263
authored
Jan 08, 2012
by
ale
Browse files
add CRL verification to the client config
parent
693fd5e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
autovpn/vpn_app.py
View file @
c756b263
...
...
@@ -35,6 +35,7 @@ persist-tun
ca ca.crt
cert %(cn)s.crt
key %(cn)s.key
crl-verify crl.pem
ns-cert-type server
'''
...
...
@@ -186,6 +187,7 @@ def new_cert_dl():
key_pem
=
crypto
.
dump_privatekey
(
crypto
.
FILETYPE_PEM
,
pkey
)
manifest
=
[
(
'ca.crt'
,
g
.
ca
.
get_ca
()),
(
'crl.pem'
,
g
.
ca
.
get_crl
(
format
=
'pem'
)),
(
'%s.crt'
%
cn
,
crt_pem
),
(
'%s.key'
%
cn
,
key_pem
),
(
'openvpn-%s.conf'
%
cn
,
OPENVPN_CONFIG_TEMPLATE
%
vars
),
...
...
@@ -195,6 +197,7 @@ def new_cert_dl():
(
'%s.tblk/Info.plist'
%
cn
,
TBLK_PLIST_TEMPLATE
%
vars
),
(
'%s.tblk/config.ovpn'
%
cn
,
OPENVPN_CONFIG_TEMPLATE
%
vars
),
(
'%s.tblk/ca.crt'
%
cn
,
g
.
ca
.
get_ca
()),
(
'%s.tblk/crl.pem'
%
cn
,
g
.
ca
.
get_crl
(
format
=
'pem'
)),
(
'%s.tblk/%s.crt'
%
(
cn
,
cn
),
crt_pem
),
(
'%s.tblk/%s.key'
%
(
cn
,
cn
),
key_pem
),
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment