This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Generate private key with passphrase | |
| openssl genrsa -des3 -out server.key 2048 | |
| # Private key without passpharase; UNDERSTAND THE RISK! | |
| openssl rsa -in server.key -out server.key-nopass | |
| # Generate CSR to submit to CA | |
| openssl req -new -sha256 -key server.key -out server.csr | |
| # Check/view CSR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 127.0.0.1 localhost | |
| 127.0.1.1 myhostname | |
| # The following lines are desirable for IPv6 capable hosts | |
| ::1 ip6-localhost ip6-loopback | |
| fe00::0 ip6-localnet | |
| ff00::0 ip6-mcastprefix | |
| ff02::1 ip6-allnodes | |
| ff02::2 ip6-allrouters |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install necessary packages | |
| sudo apt-get unzip | |
| sudo apt-get install libtext-csv-xs-perl | |
| # Create database location | |
| sudo mkdir /usr/share/xt_geoip | |
| # Download the database file and convert | |
| /usr/lib/xtables-addons/xt_geoip_dl | |
| sudo /usr/lib/xtables-addons/xt_geoip_build -D /usr/share/xt_geoip *.csv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo sh -c 'echo "America/Los_Angeles" > /etc/timezone' | |
| sudo dpkg-reconfigure --frontend noninteractive tzdata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo dpkg-reconfigure tzdata |
NewerOlder