mirror of
https://github.com/pikvm/pikvm
synced 2024-11-06 21:20:32 +00:00
Update letsencrypt.md
This commit is contained in:
parent
2874b62e77
commit
53af0816d1
@ -96,7 +96,7 @@ This example shows that PiKVM may not be accessible from the internet, but you c
|
|||||||
|
|
||||||
The user will need specific permissions that are required to allow the certbot plugin to create the necessary CNAME records. These can be added by manually selecting them from a very long list or you can use the json view to give it the following permissions.
|
The user will need specific permissions that are required to allow the certbot plugin to create the necessary CNAME records. These can be added by manually selecting them from a very long list or you can use the json view to give it the following permissions.
|
||||||
|
|
||||||
```
|
```json
|
||||||
{
|
{
|
||||||
"Version": "2012-10-17",
|
"Version": "2012-10-17",
|
||||||
"Statement": [
|
"Statement": [
|
||||||
@ -130,17 +130,16 @@ This example shows that PiKVM may not be accessible from the internet, but you c
|
|||||||
|
|
||||||
We now need to put the AWS credentials on the PiKVM so the certbot can use them.
|
We now need to put the AWS credentials on the PiKVM so the certbot can use them.
|
||||||
```
|
```
|
||||||
kvmd-pstrun -- mkdir /var/lib/kvmd/pst/data/certbot/
|
kvmd-pstrun -- mkdir -p /var/lib/kvmd/pst/data/certbot/runroot
|
||||||
kvmd-pstrun -- mkdir /var/lib/kvmd/pst/data/certbot/runroot
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Copy and paste your AWS credentials into the nano editor and save the file.
|
Copy and paste your AWS credentials into the nano editor and save the file.
|
||||||
```
|
```
|
||||||
kvmd-pstrun -- nano /var/lib/kvmd/pst/data/certbot/runroot/.route53.auth
|
# kvmd-pstrun -- nano /var/lib/kvmd/pst/data/certbot/runroot/.route53.auth
|
||||||
```
|
```
|
||||||
Here is an example .route53.auth file. Replace the placeholders with the access key and secret access key that you just saved from AWS and fill them in.
|
Here is an example .route53.auth file. Replace the placeholders with the access key and secret access key that you just saved from AWS and fill them in.
|
||||||
|
|
||||||
```
|
```ini
|
||||||
[default]
|
[default]
|
||||||
aws_access_key_id=XXXXXX
|
aws_access_key_id=XXXXXX
|
||||||
aws_secret_access_key=XXXX/XXXXX
|
aws_secret_access_key=XXXX/XXXXX
|
||||||
@ -153,8 +152,8 @@ This example shows that PiKVM may not be accessible from the internet, but you c
|
|||||||
|
|
||||||
4. Obtain the certificate:
|
4. Obtain the certificate:
|
||||||
```
|
```
|
||||||
export AWS_SHARED_CREDENTIALS_FILE="/var/lib/kvmd/pst/data/certbot/runroot/.route53.auth"
|
# export AWS_SHARED_CREDENTIALS_FILE="/var/lib/kvmd/pst/data/certbot/runroot/.route53.auth"
|
||||||
kvmd-certbot certonly \
|
# kvmd-certbot certonly \
|
||||||
--dns-route53 \
|
--dns-route53 \
|
||||||
--agree-tos \
|
--agree-tos \
|
||||||
-n \
|
-n \
|
||||||
|
Loading…
Reference in New Issue
Block a user