Hi!
I use sitecopy to update websites via webdav over SSL:
$ cat .sitecopyrc
[...]
protocol webdav
http secure
[...]
When the website uses a self-signed SSL certificate, I have to explicitly
check the fingerprint and accept the certificate. This is needed each
time the self-signed SSL certificate is renewed, but only once (until
the next renewal, of course).
This is nothing new or special about sitecopy. I am not aware of any
better way to handle self-signed certificates: I've seen the same
pattern in many many other programs...
On the other hand, when the website uses a CA-issued SSL certificate,
it seems that sitecopy is unable to automatically check the trust
chain from the CA to the certificate. As a consequence it again asks
the user to manually check the fingerprint and accept the certificate!
Just like with self-signed certificates!
It happened to me, when a website was migrated to use certificates issued
by Let's Encrypt [1]. The whole point of Let's Encrypt is to handle
the certificate issueing in an automated way: hence, the fingerprint
of the automatically renewed certificate is no longer published by
the website administrators. This means that, with sitecopy, the
security of the connection has in fact decreased, after the switch
from self-signed certificates to Let's Encrypt: the user has to hope
there is no man-in-the-middle attack on the first time he/she connects
to the website after each certificate renewal!
[1] https://letsencrypt.org/
The behavior I experienced seems to be a bug, since the sitecopy(1)
man page states:
[...]
The first time
SSL is used to access the server, the user will be prompted to verify
the SSL certificate, if it's not signed by a CA trusted in the system's
CA root bundle.
[...]
but sitecopy is apparently unable to check the trust chain from the
appropriate root CA to the certificate.
This chain seems to be
DST Root CA X3 → Let's Encrypt Authority X1 → <website_certificate>
and it seems to me that the DST Root CA X3 certificate is installed
on my system:
$ dpkg -L ca-certificates | grep -i DST
/usr/share/ca-certificates/mozilla/DST_Root_CA_X3.crt
/usr/share/ca-certificates/mozilla/DST_ACES_CA_X6.crt
Please investigate and fix this bug and/or forward my bug report
upstream, as appropriate.
Thanks for your time!
Bye.
On Sat, 09 Apr 2016 13:39:54 +0200 Francesco Poli (wintermute) wrote: [...] Hello again, is there any progress on this bug (#820519)? Have you investigated the issue? Have you forwarded the bug report upstream? Please let me know, thanks for your time.
Ping?
Did you read the upstream site recently ? http://www.manyfish.co.uk/sitecopy/ Christian
I hadn't read the upstream site recently. I have taken a look now: I failed to find any useful information about my issue. Do you mean that I should notice that no new upstream version has been released since 2008? Please let me know. Thanks for your time!
[...] Yes. Christian
Well, that does not imply that a bug report on the Debian BTS should be left unanswered. Is upstream really unresponsive? Have you tried forwarding my bug report upstream?!? In case upstream is indeed unresponsive, you could still fix the bug yourself, or seek help from someone else...
Ping?
[...] Second ping?
Control: severity -1 grave Help! On my up-to-date Debian buster box, I am no longer able to update websites via webdav over SSL: $ sitecopy --update MYSITE sitecopy: Updating site `MYSITE' (on www.example.org in /dav/MYSITE/html-MYSITE/) sitecopy: Error: Certificate verification error: signed using insecure algorithm I am still able to access the webdav server via cadaver, which does not complain about insecure certificates, hence I assume that nothing important changed on the server side. I can't understand why, but sitecopy stopped working at all with webdav over SSL. Please help me to pinpoint the issue and/or suggest an alternative tool that does a similar job (and supports webdav over SSL). Looking forward to hearing back from you. Bye.
Nothing grave here. Severity set to normal. I use sitecopy everyday without problem. [...] Sitecopy don't claim to be compliant with any protocols... This bug is maybe related to libneon27-gnutls (configration problem) : https://bugs.debian.org/530510#117 ,---- | STANDARDS | [Listed for reference only, no claim of compliance to any of the below standards is made.] | | RFC 959 - File Transfer Protocol (FTP) | RFC 1521 - Multipurpose Internet Mail Extensions Part One | RFC 1945 - Hypertext Transfer Protocol -- HTTP/1.0 | RFC 2396 - Uniform Resource Identifiers: Generic Syntax | RFC 2518 - HTTP Extensions for Distributed Authoring -- WEBDAV | RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1 | RFC 2617 - HTTP Authentication | REC-XML - Extensible Markup Language (XML) 1.0 | REC-XML-NAMES - Namespaces in XML `---- Christian
You lucky boy! ;-)
Could you please help me to become a little bit luckier?
when everything was working fine.
Something else changed between June, the 22nd and July, the 6th.
experiencing during the last 30 days?
Please help me to debug the issue: I tried to connect with gnutls-cli
(shipped by package gnutls-bin) and obtained the following relevant
output:
$ gnutls-cli -p 443 www.[...].org
Processed 166 CA certificate(s).
Resolving 'www.[...].org:443'...
Connecting to '[...]:443'...
- Certificate type: X.509
- Got a certificate list of 2 certificates.
- Certificate[0] info:
- subject `CN=[...].org', issuer `CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US', serial 0x[...], RSA key 2048 bits, signed using RSA-SHA256, activated `2017-06-29 [...] UTC', expires `2017-09-27 [...] UTC', pin-sha256="[...]"
Public Key ID:
sha1:[...]
sha256:[...]
Public Key PIN:
pin-sha256:[...]
Public key's random art:
+--[ RSA 2048]----+
[...]
+-----------------+
- Certificate[1] info:
- subject `CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US', issuer `CN=DST Root CA X3,O=Digital Signature Trust Co.', serial 0x0a0141420000015385736a0b85eca708, RSA key 2048 bits, signed using RSA-SHA256, activated `2016-03-17 16:40:46 UTC', expires `2021-03-17 16:40:46 UTC', pin-sha256="YLh1dUR9y6Kja30RrAn7JKnbQG/uEtLMkBgFF2Fuihg="
- Status: The certificate is trusted.
- Description: (TLS1.2)-(ECDHE-RSA-SECP256R1)-(AES-256-GCM)
- Session ID: [...]
- Ephemeral EC Diffie-Hellman parameters
- Using curve: SECP256R1
- Curve size: 256 bits
- Version: TLS1.2
- Key Exchange: ECDHE-RSA
- Server Signature: RSA-SHA512
- Cipher: AES-256-GCM
- MAC: AEAD
- Compression: NULL
- Options: safe renegotiation,
- Handshake was completed
- Simple Client Mode:
- Peer has closed the GnuTLS connection
Which is the insecure algorithm used to sign the server certificate?
Why does sitecopy complain?
Please help me to understand where the problem is.
Thanks for your time!
On 18 juil. 2017 23:34, Francesco Poli <invernomuto@paranoici.org> wrote: [...] Did you try sitecopy with --debug options to see what is going on ? I'm unable to setup sitecopy to acces a https apache 2.4 server. Works fine with http. Christian
I've just tried. It seems to be a bit terse... $ sitecopy --debug=httpauth,http,httpbody --update [...] sitecopy: Updating site `[...]' (on www.[...].org in /dav/[...]/html-[...]/) HTTP session to https://www.[...].org:443 begins. ah_create, for WWW-Authenticate Running pre_send hooks Sending request headers: OPTIONS /dav/[...]/html-[...]/ HTTP/1.1 User-Agent: sitecopy/0.16.6 neon/0.30.2 Keep-Alive: Connection: TE, Keep-Alive TE: trailers Host: www.[...].org Sending request-line and headers: Doing DNS lookup on www.[...].org... req: Connecting to [...]:443 Request ends, status 0 class 0xx, error line: Certificate verification error: signed using insecure algorithm Running destroy hooks. Request ends. sess: Destroying session. sitecopy: Error: Certificate verification error: signed using insecure algorithm Is there any way to get more information?
On 19 juil. 2017 19:33, Francesco Poli <invernomuto@paranoici.org> wrote: [...] Could you give me a sitecopy configuration of course without private datas ? Christian
Sure!
$ cat ~/.sitecopyrc
site [...]
server www.[...].org
username [...]
protocol webdav
http secure
http expect
remote /dav/[...]/html-[...]/
local ~/[...]
state checksum
checkmoved renames
url [...]
Thanks. Then the problem come from libneon27-gnutls I can use sitecopy is build against libneon27 I can rebuild sitecopy against libnenon27 but someone asked to remove this package (#451778)... Christian
[...] Hello again. I'm back at trying to debug this issue. I am quite sure the problem does *not* come from libneon27-gnutls, since both sitecopy and cadaver depend on this library, and cadaver is still able to connect to the server: $ apt-cache show sitecopy | grep libneon27-gnutls Depends: libc6 (>= 2.4), libneon27-gnutls $ apt-cache show cadaver | grep libneon27-gnutls Depends: libc6 (>= 2.14), libgcrypt20 (>= 1.7.0), libgnutls30 (>= 3.5.0), libncurses5 (>= 6), libneon27-gnutls, libreadline7 (>= 6.0), libtinfo5 (>= 6), libxml2 (>= 2.6.27)
We believe that the bug you reported is fixed in the latest version of
sitecopy, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 820519@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Haolin Xue <tzbkk@outlook.com> (supplier of updated sitecopy package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 21 Oct 2026 22:04:34 +0800
Source: sitecopy
Architecture: source
Version: 1:0.17-1
Distribution: unstable
Urgency: medium
Maintainer: Haolin Xue <tzbkk@outlook.com>
Changed-By: Haolin Xue <tzbkk@outlook.com>
Closes: 325494 443136 471226 515217 564462 565191 565214 572427 742661 820519 1055868 1122480
Changes:
sitecopy (1:0.17-1) unstable; urgency=medium
.
* New upstream release.
- NEON_COMMON_BUNDLED in neon 0.36 added
AC_CONFIG_FILES([${neon_bundled_builddir}/Makefile])
(neon/macros/neon.m4:107). During Debian's autoreconf, this newer macro
was combined with sitecopy 0.16.6's configure.in:123, which passed
"\$(top_builddir)/lib/neon" as the bundled neon build directory. When
config.status evaluated the resulting path, the shell interpreted
$(top_builddir) as command substitution; since no such command exists, it
expanded to an empty string and config.status looked for
/lib/neon/Makefile.in, causing the FTBFS. Upstream fixed this in 0.17 by
passing the plain path neon/src in configure.ac:130 (Closes: #1122480).
- https://github.com/notroj/sitecopy/commit/ff90e60
(Closes: #515217, #564462, #742661)
- https://github.com/notroj/sitecopy/commit/a862136
(Closes: #572427, #565191)
- https://github.com/notroj/sitecopy/pull/51
(Closes: #443136)
- NEWS:48 (Closes: #471226)
- NEWS:39 (Closes: #565214)
- Close #820519 believed fixed. (Closes: #820519)
* New maintainer. (Closes: #1055868)
* d/control:
- Bump Standards-Version to 4.7.4.
- Update Homepage field.
- Bump debhelper version to 14.
- Remove useless libxml2-dev, add dh-sequence-single-binary.
- Remove outdated Priority & Rules-Requires-Root fields.
* Clean up patches.
- Merged (https://github.com/notroj/sitecopy/pull/20):
+ 04-manpages-addition-fixes.patch
+ 06-sftpdriver.c-fix-for-new-openssh.patch
+ 30-bts320586-manpage-document-sftp.patch
- Others have been dropped as they are outdated.
* d/rules:
- Remove deprecated dh_auto_configure flags "--with-libxml2"
"--with-expat" "--with-included-expat".
- Disable upstream test suite, as it's incompatible with sbuild.
- Fix a path typo in override_dh_auto_install.
* Modernize d/watch using new upstream URL.
* Rewrite d/copyright.
* Add sitecopy.install.
* d/upstream: Drop useless signature and add upstream metadata.
* Override a lintian warning about an unexecuted configure.
* d/docs: Add README.md.
* Close #325494 as it is "not a bug" according to the upstream.
(Closes: #325494)
* Remove d/README.Debian, as xsitecopy no longer exists.
Checksums-Sha1:
caf30b410e655fd15e9a2f6038de9d9ecdb1a7ac 1891 sitecopy_0.17-1.dsc
0ed69fe71cf0835c2a780942449234da11bd5f3d 1202925 sitecopy_0.17.orig.tar.gz
39bc05297b70adbd88847b639da18ecd93ba6801 10904 sitecopy_0.17-1.debian.tar.xz
7d845e5e702b4c01a1d5aa553f40781b37250e0f 6944 sitecopy_0.17-1_source.buildinfo
Checksums-Sha256:
2287d6ca197e62d0edca5b980d7a00bf17743a98d0912fd39a4191287ee83e94 1891 sitecopy_0.17-1.dsc
7a3c35cc636af117442b83d7b6fb8c660ed9e66927ace10f08162e22cc40328b 1202925 sitecopy_0.17.orig.tar.gz
9145f9a364598fbfdda54abe33eec6446495a1d3d7304d523c26fd70c4d28f6c 10904 sitecopy_0.17-1.debian.tar.xz
db845f7cd91d6a5396a80d33531903e13ae2aa9b04665de502ab5b93d525feb0 6944 sitecopy_0.17-1_source.buildinfo
Files:
c21746fe967d719d38fa9cf79ec7e0df 1891 web optional sitecopy_0.17-1.dsc
2392b3749a543f47892c5ae19270a676 1202925 web optional sitecopy_0.17.orig.tar.gz
411262d5c02358407b0f627f3ab1439d 10904 web optional sitecopy_0.17-1.debian.tar.xz
e6d9d85fc0c79250ca71464e984f53f8 6944 web optional sitecopy_0.17-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEXHq+og+GMEWcyMi14n8s+EWML6QFAmrecpUACgkQ4n8s+EWM
L6Q3Gw/6A56oChN9jA/ua1a1mSrqH/oPz5jN3XNIMpi1ZCWHd5yKsUKsyAqRY1iQ
WZrXdQVSR9AHhsHsl7VUaXnTZ66thpuP9qOT7x2m27MBkoGzPcdAA3IUsdQsq/os
JC2gBSsZIDlSUEr1L7bFlZU2NnsKWii26y4B6fmKPRzXrYj4nlIX/glZdS9YYky0
bHIYpAkM+m3v+CvhD0Nf2JWgMoaDeFrWLj7CxhqpGCdoD+lqO0TIVVKmb8nkXQx1
fmlliUdZPkvlyw4xTBXYyI61MVTuC89fAJWpeAL/H35gPngVE4uwp3MADbUWSYbu
jHaTw3nCg9Pd3cnptB8DaFmvdqWT9fzrB8syT61Zt5a5qF70b2M1XwsPxD0VQb//
Eu3H0ShgxNO/WMpR+QjkWOnW4suotjUiEziXUwq7kbOESDgd/G7HW43BnEXaNLeG
9oVac5BFc8kRM9LvNaxP7BB9/iPqjMv7es9kvHH+VY0x+sYsghvKZTiGKd1WQauM
EF+77IoLT6UUl+Exxcq5vweL1PTj1y4Op1cRQSDMwgx2IaUaMKny4r5Y4qHoF9Z/
pYguFANK5graB1d/rPE5bcQ1PhymssmN/qXOtuBtyaa89MF1TL+o/2IGqCP/RQKn
tX5avgMYoJTFWsAj6sB05xmiPhg/pHDnHv2Q1jGMmUgw83hOkCg=
=TDwc
-----END PGP SIGNATURE-----