login as: admin Welcome to EdgeOS By logging in, accessing, or using the Ubiquiti product, you acknowledge that you have read and understood the Ubiquiti License Agreement (available in the Web UI at, by default, http://192.168.1.1) and agree to be bound by its terms. admin@192.168.0.1's password: Linux USG 3.10.107-UBNT #1 SMP Wed Dec 5 04:57:56 UTC 2018 mips64 ___ ___ .__________.__ | | |____ |__\_ ____/__| | | / \| || __) | | (c) 2010-2018 | | | | \ || \ | | Ubiquiti Networks, Inc. |______|___| /__||__/ |__| |_/ http://www.ubnt.com Welcome to EdgeOS on UniFi Security Gateway! *NOTE*: Configuration changes made here are not persistent. They will be overwritten by the controller on next provision. Last login: Sat Jan 26 14:02:06 2019 from 192.168.0.2 admin@USG:~$ sudo bash root@USG:/home/admin# curl -O http://ftp.us.debian.org/debian/pool/main/e/easy-r sa/easy-rsa_2.2.2-1~bpo70+1_all.deb % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 19006 100 19006 0 0 30200 0 --:--:-- --:--:-- --:--:-- 63993 root@USG:/home/admin# sudo dpkg -i easy-rsa_2.2.2-1~bpo70+1_all.deb (Reading database ... 33037 files and directories currently installed.) Preparing to replace easy-rsa 2.2.2-1~bpo70+1 (using easy-rsa_2.2.2-1~bpo70+1_al l.deb) ... Unpacking replacement easy-rsa ... Setting up easy-rsa (2.2.2-1~bpo70+1) ... root@USG:/home/admin# cd /usr/share/easy-rsa root@USG:/usr/share/easy-rsa# . vars NOTE: If you run ./clean-all, I will be doing a rm -rf on /usr/share/easy-rsa/ke ys root@USG:/usr/share/easy-rsa# ./clean-all root@USG:/usr/share/easy-rsa# ./build-ca Generating a 2048 bit RSA private key ....................+++ ........+++ writing new private key to 'ca.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [US]:SK State or Province Name (full name) [CA]:. Locality Name (eg, city) [SanFrancisco]:Nitra Organization Name (eg, company) [Fort-Funston]:. Organizational Unit Name (eg, section) [MyOrganizationalUnit]:. Common Name (eg, your name or your server's hostname) [Fort-Funston CA]:UBNT-USG -VPN Name [EasyRSA]:EasyRSA Email Address [me@myhost.mydomain]:. root@USG:/usr/share/easy-rsa# ./build-key-server server Generating a 2048 bit RSA private key .......+++ ................................+++ writing new private key to 'server.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [US]:SK State or Province Name (full name) [CA]:. Locality Name (eg, city) [SanFrancisco]:Nitra Organization Name (eg, company) [Fort-Funston]:. Organizational Unit Name (eg, section) [MyOrganizationalUnit]:. Common Name (eg, your name or your server's hostname) [server]:server Name [EasyRSA]:EasyRSA Email Address [me@myhost.mydomain]:. Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []:. Using configuration from /usr/share/easy-rsa/openssl-1.0.0.cnf Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows countryName :PRINTABLE:'SK' localityName :PRINTABLE:'Nitra' commonName :PRINTABLE:'server' name :PRINTABLE:'EasyRSA' Certificate is to be certified until Jan 23 13:43:06 2029 GMT (3650 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated root@USG:/usr/share/easy-rsa# ./build-key Boris Generating a 2048 bit RSA private key ........................................+++ ..................+++ writing new private key to 'Boris.key' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [US]:SK State or Province Name (full name) [CA]:. Locality Name (eg, city) [SanFrancisco]:Nitra Organization Name (eg, company) [Fort-Funston]:. Organizational Unit Name (eg, section) [MyOrganizationalUnit]:. Common Name (eg, your name or your server's hostname) [Boris]:Boris Name [EasyRSA]:EasyRSA Email Address [me@myhost.mydomain]:. Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []:. Using configuration from /usr/share/easy-rsa/openssl-1.0.0.cnf Check that the request matches the signature Signature ok The Subject's Distinguished Name is as follows countryName :PRINTABLE:'SK' localityName :PRINTABLE:'Nitra' commonName :PRINTABLE:'Boris' name :PRINTABLE:'EasyRSA' Certificate is to be certified until Jan 23 13:44:01 2029 GMT (3650 days) Sign the certificate? [y/n]:y 1 out of 1 certificate requests certified, commit? [y/n]y Write out database with 1 new entries Data Base Updated root@USG:/usr/share/easy-rsa# ./build-dh Generating DH parameters, 2048 bit long safe prime, generator 2 This is going to take a long time .............................................................................................................................................................+........................................................................................................................................+........................................+.......................+.................................................................+..................................................................................+............................+.............................................................................+............................................................................................................................+..........................................................................................................+.......................................................................................................................................................................................................+...................................................................................+..............................................................+...................................................................................................................................+...............+.....................................................................................+.......................................+......................................................................................................................................................................................................................................................................................+.................+..............+........................................................................+.......+............................................................................................................................................................................................................................+.................................................+.....................................................................................................................................................+...............................................................................................................................+..........................+.........................................+.........................+.....................................+..............................................................................................................................................................+.............+..............