Note - Before Proceeding make sure you've read the INSTALLATION INSTRUCTIONS
This guide aims to improve user experience when using Libreswan Administration Interface.
- Add User
- Create VPN for remote host connection profiles
- Create Subnet to Subnet VPN connection profiles
- Generate Private Key (CA private key)
- Generate root certificate (Using CA private key)
- Create certificate configurations (for user certificates)
- Generate user certificates
- Revoke user certificates
- Enable user (Allow User to login)
- Disable user (Disallow User to login)
- Delete User Data (Keys & Certificates)
- Delete all certificates (User, CA & Default Certificate configuration)
- Account activation (email verification)
- Download the certificate generated for user
This will add the user to the interface. To add user visit the following link or choose the add user option from the Libreswan Interface(top right corner)
http://HOSTNAME/admin/auth/user/add/
It lets you add and configure your connection and then saving the connection by using the option write to file
http://HOSTNAME/admin/vpn/vpnforremotehost/
After adding and saving configuration, select write to file
action from the dropdown menu. You'll see a success message as in the image below.
It lets you add and configure your connection and then saving the connection by using the option write to file
.
http://HOSTNAME/admin/vpn/subnettosubnet/
After adding and saving configuration, select write to file
action from the dropdown menu. You'll see a success message as in the image below.
This will generate a CA private key and will be used to sign all the user certificates. User just need to choose save key as private key
action from dropdown after selecting the desired key name and password.
http://HOSTNAME/admin/vpn/generateprivatekey/
After choosing the option save key as private key
you'll see a success message as shown in the image below.
This will be generated using the CA private key. Just select the desired configuration and choose action Generate root certificate
from the dropdown menu.
http://HOSTNAME/admin/vpn/generaterootcertificate/
After choosing the above mentioned action you'll see a success message as shown in the image below.
This will let you add multiple certificate configuration to the interface. It will then provide an action from dropdown menu to Save configuration as Default configuration
after adding and choosing the desired certificate configuration, which means saving the configuration which the user generated certificates will have.
http://HOSTNAME/admin/vpn/certificateconfiguration/
After Save configuration as Default configuration
you'll see a success message as shown in the image below.
Note - Please save any of the added configuration as default configuration before you begin to generate user certificates.
This will generate the CA signed certificates for users.
http://HOSTNAME/admin/vpn/generatecertificate/
-
User should have verified email(activated account) - It can be done by visiting the following link and entering the valid details:
http://HOSTNAME/activate_account/
On entering the valid credentials the user will get the account activation link in email(registered email id). Here is one such link:
http://HOSTNAME/activate/LQ/4xt-60306def302911f8e957/
-
Admin should have completed the step - Create certificate configurations (for user certificates)
After choosing the action Generate User certificate
from the dropdown menu, you'll see a success message as shown in the image below.
It is used to revoke the generated user certificates. It can be done by choosing the action Revoke User certificate
from the dropdown menu after selection the users from the following url.
http://HOSTNAME/admin/vpn/generatecertificate/
After successfully revoking the certificate you'll see a success message as shown in the image below.
It enables the user to login to this interface and download the certificate generated for him/her. By default all user accounts are enabled. To enable any disabled account just visit the following url, then select the users and then choose the action Enable User(Allow user to login)
from the dropdown menu.
http://HOSTNAME/admin/auth/user/
After enabling user account successfully you'll see a success message as shown in the image below.
It prevents user from login to this interface. When the user account is disabled user can't use any functionality of this interface. User can be Enabled by the administrator anytime. To disable any user account just visit the following url, then select the users and then choose the action Disable User(Disallow user to login)
from the dropdown menu.
http://HOSTNAME/admin/auth/user/
After disabling user successfully you'll see a success message as shown in the image below.
This will delete the keys and certificates created for the user. It's good to revoke a certificate first then use this option as that will prevent the certificate from being used. After visiting the following url select users and then from dropdown menu select the action Delete User Data (Keys & Certificates)
http://HOSTNAME/admin/vpn/generatecertificate/
After successfully deleting the user data you'll see success message as shown in the image below.
This will delete all the User generated certificates as well as CA certificates and default certificate configuration. Select any user then from the dropdown choose the action Delete all certificates (User, CA)
This will delete everything from the system.
http://HOSTNAME/admin/vpn/generatecertificate/
OR
http://HOSTNAME/admin/auth/user/
After successfully deleting all the certificates you'll see success message as shown in the image below.
This lets the user to activate the account and hence use the functionality of the interface. User can activate his/her account by visiting the following link and entering the valid login credentials:
http://HOSTNAME/activate_account/
After that user will receive an email on it's registered email id with the activation link. eg. sample mail sent to user:
Subject: Hello newuser - Activate Your Libreswan Account
From: [email protected]
To: [email protected]
Hi ,
Please click on the link below to confirm your registration:
http://HOSTNAME/activate/MO/4uj-759a7a1a792880768519/
-
This will let user download the certificate generated for him/her and after successful login user will also be able to see the generated password for his/her certificate.
-
After activating account successfully, the user can login to his/her account.
-
For user login - User should enter login credentials on
http://HOSTNAME/
in the user login section. -
Once the admin has generated the certificate for the user, the user can see the content similar to the following:
Hi user, Your certificate password is: 5vw8r34yw706hdyvf650 Download your certificate here: Download Certificate. Logout | Home Page