mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
updated readme
This commit is contained in:
5
README
5
README
@@ -3,6 +3,11 @@ To build from the git repository use:
|
||||
$ autoreconf -fvi
|
||||
$ ./configure && make
|
||||
|
||||
Now you need to generate a certificate. E.g.
|
||||
$ certtool --generate-privkey > ./test-key.pem
|
||||
$ certtool --generate-self-signed --load-privkey test-key.pem --outfile test-cert.pem
|
||||
(make sure you enable encryption or signing)
|
||||
|
||||
To run the server edit the src/sample.config and then run:
|
||||
# src/ocserv -f -c src/sample.config
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# User authentication method. Could be set multiple times and in that case
|
||||
# all should succeed.
|
||||
# Options: certificate, pam.
|
||||
#auth = certificate
|
||||
auth = "pam"
|
||||
|
||||
# UTMP
|
||||
@@ -25,8 +26,8 @@ udp-port = 3333
|
||||
keepalive = 90
|
||||
|
||||
# The key and the certificates of the server
|
||||
server-cert = /home/nmav/cvs/ocserv/test.pem
|
||||
server-key = /home/nmav/cvs/ocserv/test.pem
|
||||
server-cert = ./test-cert.pem
|
||||
server-key = ./test-key.pem
|
||||
|
||||
# The Certificate Authority that will be used
|
||||
# to verify clients if certificate authentication
|
||||
|
||||
Reference in New Issue
Block a user