Git Product home page Git Product logo

nethserver-vpn's Introduction

This package has been merged into nethserver-openvpn in NethServer 7.

CA environment

Prepare CA environment: :

mkdir /var/lib/nethserver/certs
touch /var/lib/nethserver/certs/certindex.attr
touch /var/lib/nethserver/certs/certindex
echo 01 > /var/lib/nethserver/certs/serial
echo 01 > /var/lib/nethserver/certs/crlnumber
openssl dhparam -out /var/lib/nethserver/certs/dh1024.pem 1024

Certificate creation

Create a valid certificate:

  1. Create a CA (we already have it in NSRV.crt)
  2. Create a certificate signing request: this will create a csr file and a key file
  3. Sign the csr file

Esecute: :

/usr/libexec/nethserver/pki-vpn-gencert <commonName>

Certificate revocation

  1. Revoke and save to CRL

Execute: :

/usr/libexec/nethserver/pki-vpn-revoke [-d] <commonName>

If '-d' option is enabled, also delete crt, csr, pem and key files

Usefull commands

Read crt informations: :

openssl x509 -text -in /root/test.crt

Create a pcks12: :

openssl pkcs12  -export -in test.crt -inkey test.key -certfile /etc/pki/tls/certs/NSRV.crt  -name "test" -out test.p12

Revoke a certificate: :

/usr/bin/openssl ca -revoke  /var/lib/nethserver/certs/pippo2.crt  -config /var/lib/nethserver/certs/ca.cnf
/usr/bin/openssl ca -gencrl -out /var/lib/nethserver/certs/crl.pem -config /var/lib/nethserver/certs/ca.cnf

nethserver-vpn's People

Contributors

davideprincipi avatar dnutan avatar gsanchietti avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.