Skip to content

rsync-ssl: verify IP address certificates with OpenSSL - #1036

Merged
steadytao merged 6 commits into
RsyncProject:masterfrom
UTsweetyfish:ipcert
Nov 22, 2026
Merged

steadytao merged 6 commits into
RsyncProject:masterfrom
UTsweetyfish:ipcert

Conversation

@UTsweetyfish

@UTsweetyfish UTsweetyfish commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes:

  1. ipcert (Let's Encrypt supports this earlier this year, see their post)
$ rsync-ssl rsync://192.0.2.1
verify depth is 4
Connecting to 192.0.2.1
depth=0
verify error:num=62:hostname mismatch
40F13FDC967F0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:../ssl/statem/statem_clnt.c:2103:
rsync: did not see server greeting
rsync error: error starting client-server protocol (code 5) at main.c(1850) [Receiver=3.4.0]
  1. openssl s_client -connect 2001:db8::1:874 didn't got properly square-bracketed
$ rsync-ssl 'rsync://[2001:db8::1]'
verify depth is 4
s_client: -connect argument or target parameter malformed or ambiguous
rsync: did not see server greeting
rsync error: error starting client-server protocol (code 5) at main.c(1850) [Receiver=3.4.0]
/usr/bin/openssl s_client [...] -connect 2001:db8::1:874

My IPv6 connection is broken so I havn't tested the second case. But it should work.

Fixes:
$ rsync-ssl rsync://<IP-Address>
verify depth is 4
Connecting to <IP-Address>
depth=0
verify error:num=62:hostname mismatch
40F13FDC967F0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:../ssl/statem/statem_clnt.c:2103:
rsync: did not see server greeting
rsync error: error starting client-server protocol (code 5) at main.c(1850) [Receiver=3.4.0]

@steadytao steadytao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The -verify_ip direction is right but this does not yet make rsync-ssl fail closed or handle IP literals robustly.

Comment thread rsync-ssl Resolved
Comment thread rsync-ssl Resolved
@steadytao

Copy link
Copy Markdown
Member

@UTsweetyfish Are you still interested in finishing this?

@steadytao steadytao changed the title rsync-ssl: -verify_ip when connecting to an IP/IPv6 address rsync-ssl: verify IP address certificates with OpenSSL Nov 22, 2026
@steadytao steadytao added the Enhancement New capability or intentional behaviour change label Nov 22, 2026
@steadytao steadytao added this to the 4.0.0 milestone Nov 22, 2026
@steadytao
steadytao merged commit 7ace2fe into RsyncProject:master Nov 22, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement New capability or intentional behaviour change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants