Sha256: 711cd8bdd7c2ee2a67ea9cdbcb5a30168d54cb3ae4216980e1cf1c74ea48ce83

Contents?: true

Size: 1.77 KB

Versions: 2

Compression:

Stored size: 1.77 KB

Contents

# Upgrading from v2 to v3

Version 3 has a number of major ease of use improvements that break backwards compatibility:

- Run one command to update all certs instead of one command per cert.
- When the command runs, it only updates certs that need updating.
- Uses a single config file instead of a large set of command arguments.

The basic procedure to upgrade is:

- Upgrade the program
- Initialize the config file
- Migrate command lines to the config file
- Replace crontab lines with new single line

## Upgrade the program

Follow the [instructions in the readme](README.md#Upgrading).

## Initialize the config file

Create the config file by running `letsencrypt_webfaction init` on the server. Edit it to reflect your situation (`nano -w ~/letsencrypt_webfaction.toml`).

## Migrate command lines to the config file

You can dump the letsencrypt_webfaction crontab lines by running `crontab -l | grep letsencrypt_webfaction` on the server. For each line, create a `[[certificate]]` section in the config file.

For example, this:

```sh
0 4 1 */2 *      RBENV_ROOT=~/.rbenv RBENV_VERSION=2.3.1 ~/.rbenv/bin/rbenv exec letsencrypt_webfaction --domains example.com,www.example.com,test.example.com --public ~/webapps/myapp/ --cert_name mycertname
```

Would become this:

```toml
[[certificate]]
domains = [
  "example.com",
  "www.example.com",
  "test.example.com"
]
public = "~/webapps/myapp/"
name = "mycertname"
```

## Replace crontab lines with new single line

Once these are all migrated, run `letsencrypt_webfaction run`. You should see output regarding which certs were issued, updated, or ignored. If this looks satisfactory, remove the existing `letsencrypt_webfaction` lines from your crontab (You edit it by running `crontab -e` on the server), and insert the new line from the readme.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
letsencrypt_webfaction-3.0.1 docs/upgrading.md
letsencrypt_webfaction-3.0.0 docs/upgrading.md