diff --git a/plugins/certs/commands b/plugins/certs/commands index 6aadee13d..c046ffedb 100755 --- a/plugins/certs/commands +++ b/plugins/certs/commands @@ -21,8 +21,9 @@ case "$1" in openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt mkdir -p "$DOKKU_ROOT/$APP/tls" + dokku_log_info1 "Installing certificate and key..." mv -f $TMP_WORK_DIR/server.key $TMP_WORK_DIR/server.crt $SSL_PATH - [[ -n "$DOMAIN" ]] && dokku domains:add $APP $DOMAIN || true + [[ -n "$DOMAIN" ]] && (dokku domains:add $APP $DOMAIN || dokku nginx:build-config $APP) dokku_log_info1 "The following is a certificate signing request that can be used" dokku_log_info1 "to generate an 'officially' signed SSL certificate for $APP at $DOMAIN" dokku_log_info1 "by a CA of your choosing."