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
| Ignore all that craziness below. These can be set from the cli with the "pritunl" command. | |
| The commands below can be used to get/set the values of the cert, key, port and if the :80 -> "app.server_port" redirect is active. | |
| # Get current SSL server cert: | |
| pritunl get app.server_cert | |
| # Get current SSL server key: | |
| pritunl get app.server_key |
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
| ---Java | |
| //I used this on Android | |
| //before you proceed, you need to ensure your private key is PKCS8 since that is what can be read natively in java. | |
| //If your key begins with -----BEGIN RSA PRIVATE KEY-----, the it is ssleay and you need to convert it using the openssl command below | |
| //openssl pkcs8 -topk8 -inform pem -in ssleay-private-key.key -outform pem -nocrypt -out pkcs8-private-key.pem | |
| final private static String RSA_PRIVATE_KEY = | |
| "-----BEGIN PRIVATE KEY-----\n" + | |
| "MI...\n" + |
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
| net.core.somaxconn = 32768 | |
| net.ipv4.conf.all.send_redirects = 1 | |
| net.ipv4.ip_nonlocal_bind = 1 | |
| net.ipv4.tcp_abort_on_overflow = 0 | |
| net.ipv4.tcp_fin_timeout = 10 | |
| net.ipv4.tcp_keepalive_time = 300 | |
| net.ipv4.tcp_max_orphans = 262144 | |
| net.ipv4.tcp_max_syn_backlog = 16384 | |
| net.ipv4.tcp_max_tw_buckets = 262144 | |
| net.ipv4.tcp_mem = 200000 280000 300000 |