From 3318b227abeb1eb50fc5c3a85026a482df741ebc Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sun, 20 Mar 2016 14:45:21 +0100 Subject: [PATCH] =?UTF-8?q?Add=20migration=20guide=20for=200.1.x=20?= =?UTF-8?q?=E2=86=92=200.2.x?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + README.md | 43 ++++++++++++++++++++++++++++++++++++++++++- composer.json | 13 +++++++++++-- 3 files changed, 54 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index d86a61d..77e9728 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/build/ /data/ /vendor/ /composer.lock \ No newline at end of file diff --git a/README.md b/README.md index d5b6721..6784906 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,51 @@ The client has been updated on Mar 12th in a non-backwards compatible manner. Pl ## Installation +** Requirements + +* PHP 5.5+ + ``` git clone https://github.com/kelunik/acme-client cd acme-client -composer install +composer install --no-dev +``` + +## Migration from 0.1.x to 0.2.x + +``` +# in ./data + +# Move your account key to new location: + +mkdir accounts +mv account/key.pem accounts/acme-v01.api.letsencrypt.org.directory.pem +# or accounts/acme-staging.api.letsencrypt.org.directory.pem if it's a staging key + +# account should now be empty or contain just a config.json, you can delete the folder then +rm -rf account + +# Migrate certificates to new location: + +cd certs +mkdir acme-v01.api.letsencrypt.org.directory + +# Move all your certificate directories +# Repeat for all directories! +mv example.com acme-v01.api.letsencrypt.org.directory +# or acme-staging.api.letsencrypt.org.directory + +# Delete all config.json files which may exist +find -name "config.json" | xargs rm + +# Update to current version +git checkout master && git pull + +# Check out latest release +git checkout $(git describe --tags `git rev-list --tags --max-count=1`) + +# Update dependencies +composer update --no-dev ``` ## Usage diff --git a/composer.json b/composer.json index 8ab3894..a965fa2 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,6 @@ "require": { "amphp/process": "^0.1.1", "bramus/monolog-colored-line-formatter": "^2", - "ext-posix": "*", "ext-openssl": "*", "kelunik/acme": "^0.3", "kelunik/certificate": "^1", @@ -42,6 +41,16 @@ ] }, "require-dev": { - "phpunit/phpunit": "^5" + "phpunit/phpunit": "^5", + "macfja/phar-builder": "dev-master" + }, + "extra": { + "phar-builder": { + "compression": "GZip", + "name": "acme.phar", + "output-dir": "build", + "include": ["bin", "src", "vendor"], + "entry-point": "bin/acme" + } } }