Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certbot doesn't know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run "certbot certonly" to do so. You'll need to manually configure your web server to use the resulting certificate.
```bash
sudo certbot
```
<details>
<summary>Output:</summary>
```
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Certbot doesn't know how to automatically configure the web server on this system. However, it can still get a certificate for you. Please run "certbot certonly" to do so. You'll need to manually configure your web server to use the resulting certificate.
```
</details>
Saving debug log to /var/log/letsencrypt/letsencrypt.log
How would you like to authenticate with the ACME CA?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Runs an HTTP server locally which serves the necessary validation files under
the /.well-known/acme-challenge/ request path. Suitable if there is no HTTP
server already running. HTTP challenge only (wildcards not supported).
(standalone)
2: Saves the necessary validation files to a .well-known/acme-challenge/
directory within the nominated webroot path. A seperate HTTP server must be
running and serving files from the webroot path. HTTP challenge only (wildcards
not supported). (webroot)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.4-April-3-2024.pdf. You must agree in
order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Account registered.
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel):
Please specify --domains, or --installer that will help in domain names autodiscovery, or --cert-name for an existing certificate name.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
```bash
sudo certbot certonly --register-unsafely-without-email
```
<details>
<summary>Output:</summary>
```
Saving debug log to /var/log/letsencrypt/letsencrypt.log
How would you like to authenticate with the ACME CA?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: Runs an HTTP server locally which serves the necessary validation files under
the /.well-known/acme-challenge/ request path. Suitable if there is no HTTP
server already running. HTTP challenge only (wildcards not supported).
(standalone)
2: Saves the necessary validation files to a .well-known/acme-challenge/
directory within the nominated webroot path. A seperate HTTP server must be
running and serving files from the webroot path. HTTP challenge only (wildcards
not supported). (webroot)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.4-April-3-2024.pdf. You must agree in
order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Account registered.
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel):
Please specify --domains, or --installer that will help in domain names autodiscovery, or --cert-name for an existing certificate name.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /var/log/letsencrypt/letsencrypt.log or re-run Certbot with -v for more details.
```
</details>
Enabling site default-ssl.
To activate the new configuration, you need to run:
systemctl reload apache2
sudo service apache2 reload
Output:
Warning: The unit file, source configuration file or drop-ins of apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for apache2.service failed.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
sudo service apache2 restart
Output:
Warning: The unit file, source configuration file or drop-ins of apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
service apache2 status | cat
Output:
Warning: The unit file, source configuration file or drop-ins of apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
× apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-10-13 22:59:02 UTC; 45s ago
Duration: 1d 20h 20min 56.329s
Docs: https://httpd.apache.org/docs/2.4/
Process: 22797 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 17ms
Oct 13 22:59:02 instance-20241012-0417 systemd[1]: Starting apache2.service - The Apache HTTP Server...
Oct 13 22:59:02 instance-20241012-0417 apachectl[22800]: AH00526: Syntax error on line 24 of /etc/apache2/sites-enabled/default-ssl.conf:
Oct 13 22:59:02 instance-20241012-0417 apachectl[22800]: Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Oct 13 22:59:02 instance-20241012-0417 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Oct 13 22:59:02 instance-20241012-0417 systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 13 22:59:02 instance-20241012-0417 systemd[1]: Failed to start apache2.service - The Apache HTTP Server.
a2enmod ssl
Output:
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Could not create /etc/apache2/mods-enabled/socache_shmcb.load: Permission denied
sudo service apache2 reload
Warning: The unit file, source configuration file or drop-ins of apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
sudo service apache2 restart
Warning: The unit file, source configuration file or drop-ins of apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
```bash
sudo a2ensite default-ssl
```
<details>
<summary>Output:</summary>
```
Enabling site default-ssl.
To activate the new configuration, you need to run:
systemctl reload apache2
```
</details>
```bash
sudo service apache2 reload
```
<details>
<summary>Output:</summary>
```
Warning: The unit file, source configuration file or drop-ins of apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for apache2.service failed.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
```
</details>
```bash
sudo service apache2 restart
```
<details>
<summary>Output:</summary>
```
Warning: The unit file, source configuration file or drop-ins of apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for details.
```
</details>
```bash
service apache2 status | cat
```
<details>
<summary>Output:</summary>
```
Warning: The unit file, source configuration file or drop-ins of apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
× apache2.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sun 2024-10-13 22:59:02 UTC; 45s ago
Duration: 1d 20h 20min 56.329s
Docs: https://httpd.apache.org/docs/2.4/
Process: 22797 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 17ms
Oct 13 22:59:02 instance-20241012-0417 systemd[1]: Starting apache2.service - The Apache HTTP Server...
Oct 13 22:59:02 instance-20241012-0417 apachectl[22800]: AH00526: Syntax error on line 24 of /etc/apache2/sites-enabled/default-ssl.conf:
Oct 13 22:59:02 instance-20241012-0417 apachectl[22800]: Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration
Oct 13 22:59:02 instance-20241012-0417 systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Oct 13 22:59:02 instance-20241012-0417 systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 13 22:59:02 instance-20241012-0417 systemd[1]: Failed to start apache2.service - The Apache HTTP Server.
```
</details>
```bash
a2enmod ssl
```
<details>
<summary>Output:</summary>
```
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Could not create /etc/apache2/mods-enabled/socache_shmcb.load: Permission denied
```
</details>
```bash
sudo service apache2 reload
```
```
Warning: The unit file, source configuration file or drop-ins of apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
```
```bash
sudo service apache2 restart
```
```
Warning: The unit file, source configuration file or drop-ins of apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
```
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Output:
Would help YouTube-operational-API/issues/317.
How to proceed with domain name?to How to proceed without domain name?Related to Benjamin_Loison/HTTPS/issues/2.
Output:
Unclear how to have
/etc/apache2/sites-enabled/default-ssl.conf.I just checked on a fresh Ubuntu 22 that
sudo apt install -y apache2installs this file.Output:
Output:
Output:
Output:
Output:
Output:
Source: https://docs.openssl.org/3.3/man1/openssl-list/
Source: the Stack Overflow answer 78999741
works fine.