--- /dev/null
+--- ./letsencrypt.sh~ 2016-08-14 14:00:09.000000000 +0300
++++ ./letsencrypt.sh 2019-11-08 12:31:02.324585401 +0200
+@@ -76,6 +76,7 @@
+ OPENSSL_CNF="$(openssl version -d | cut -d\" -f2)/openssl.cnf"
+ CONTACT_EMAIL=
+ LOCKFILE=
++ CURL_OPTS="--http1.1"
+
+ if [[ -z "${CONFIG:-}" ]]; then
+ echo "#" >&2
+@@ -256,13 +257,13 @@
+
+ set +e
+ if [[ "${1}" = "head" ]]; then
+- statuscode="$(curl -s -w "%{http_code}" -o "${tempcont}" "${2}" -I)"
++ statuscode="$(curl $CURL_OPTS -s -w "%{http_code}" -o "${tempcont}" "${2}" -I)"
+ curlret="${?}"
+ elif [[ "${1}" = "get" ]]; then
+- statuscode="$(curl -s -w "%{http_code}" -o "${tempcont}" "${2}")"
++ statuscode="$(curl $CURL_OPTS -s -w "%{http_code}" -o "${tempcont}" "${2}")"
+ curlret="${?}"
+ elif [[ "${1}" = "post" ]]; then
+- statuscode="$(curl -s -w "%{http_code}" -o "${tempcont}" "${2}" -d "${3}")"
++ statuscode="$(curl $CURL_OPTS -s -w "%{http_code}" -o "${tempcont}" "${2}" -d "${3}")"
+ curlret="${?}"
+ else
+ set -e
Summary: letsencrypt/acme client implemented as a shell-script
Name: letsencrypt.sh
Version: 0.2.0
-Release: 4
+Release: 5
License: MIT
Group: Applications/Networking
Source0: https://github.com/lukas2511/letsencrypt.sh/archive/v%{version}/%{name}-%{version}.tar.gz
Source6: crontab
Patch0: pld.patch
Patch1: letsencrypt.sh-agrurl.patch
+Patch2: curl1.1.patch
URL: https://github.com/lukas2511/letsencrypt.sh
BuildRequires: rpmbuild(macros) >= 1.713
Requires: crondaemon
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%install
rm -rf $RPM_BUILD_ROOT