tomcat_letsencrypt
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tomcat_letsencrypt [2023/01/12 17:05] – millerjs | tomcat_letsencrypt [2024/11/14 02:30] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Setup Tomcat9 in Ubuntu 20 ====== | + | ===== Install and Configure Tomcat 9.0.19 |
| https:// | https:// | ||
| Line 5: | Line 5: | ||
| < | < | ||
| - | Update & Install JDK | + | Install JDK (Ubuntu) |
| - | < | + | < |
| - | + | ||
| - | Download Tomcat (9.0.19) | + | Install JDK (CentOS/ |
| - | < | + | < |
| + | |||
| + | Download Tomcat (9.0.76) | ||
| + | < | ||
| Decompress | Decompress | ||
| Line 16: | Line 19: | ||
| Give tomcat user ownership | Give tomcat user ownership | ||
| < | < | ||
| - | ====== Notes for RHEL/ | ||
| + | |||
| + | ===== Install and configure authbind ===== | ||
| + | |||
| + | === Ubuntu === | ||
| + | < | ||
| + | |||
| + | === CentOS/RHEL === | ||
| Get authbind from here: https:// | Get authbind from here: https:// | ||
| < | < | ||
| - | Install default-jdk with: | ||
| - | < | ||
| - | ====== Configure Tomcat9 to run through authbind ====== | ||
| - | |||
| - | < | ||
| < | < | ||
| - | touch / | + | sudo touch / |
| - | touch / | + | sudo touch / |
| - | chmod 0755 / | + | sudo chmod 0755 / |
| - | chmod 0755 / | + | sudo chmod 0755 / |
| - | chown tomcat: | + | sudo chown tomcat: |
| - | chown tomcat: | + | sudo chown tomcat: |
| </ | </ | ||
| Line 44: | Line 48: | ||
| - | ====== Using A Local CA with Tomcat9 ====== | + | ===== Using Lets Encrypt with Tomcat9 (single) ===== |
| - | ===== Generate CA in xca(?) ====== | + | |
| - | + | ||
| - | ====== Using Lets Encrypt with Tomcat9 (wildcard) ====== | + | |
| - | Generate Cert: | + | |
| - | < | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | ====== Using Lets Encrypt with Tomcat9 (single) | + | |
| This is the manual way. I'm sure there' | This is the manual way. I'm sure there' | ||
| Line 233: | Line 228: | ||
| </ | </ | ||
| </ | </ | ||
| + | </ | ||
| + | |||
| + | ===== tomcat systemd service file ===== | ||
| + | < | ||
| + | [Unit] | ||
| + | Description=Apache Tomcat Web Application Container | ||
| + | After=network.target | ||
| + | |||
| + | [Service] | ||
| + | Type=forking | ||
| + | |||
| + | Environment=" | ||
| + | Environment=" | ||
| + | Environment=" | ||
| + | Environment=" | ||
| + | Environment=" | ||
| + | Environment=" | ||
| + | |||
| + | ExecStart=/ | ||
| + | ExecStop=/ | ||
| + | |||
| + | User=root | ||
| + | Group=root | ||
| + | UMask=0007 | ||
| + | RestartSec=10 | ||
| + | Restart=always | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=multi-user.target | ||
| </ | </ | ||
tomcat_letsencrypt.1673543126.txt.gz · Last modified: (external edit)
