[Bug 1208891] New: openssl client cert authentication does not work when passing -quiet
https://bugzilla.suse.com/show_bug.cgi?id=1208891 Bug ID: 1208891 Summary: openssl client cert authentication does not work when passing -quiet Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: otto.hollmann@suse.com Reporter: mrueckert@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- We found this while testing cert auth for rsync-ssl with openssl cli as backend. rsync-ssl calls openssl with -quiet. ``` /usr/bin/openssl s_client -quiet -verify_quiet -verify_return_error -verify 4 -cert ${SSL_CLIENT_CERT} -key ${SSL_CLIENT_CERT} -servername ${SSL_CLIENT_HOST} -verify_hostname ${SSL_CLIENT_HOST} -connect ${SSL_CLIENT_HOST}:1453 < /dev/null ; echo $? 4027DBD1057F0000:error:0A000418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca:ssl/record/rec_layer_s3.c:1605:SSL alert number 48 1 ``` now the same without -quiet ``` /usr/bin/openssl s_client -verify_quiet -verify_return_error -verify 4 -cert ${SSL_CLIENT_CERT} -key ${SSL_CLIENT_CERT} -servername ${SSL_CLIENT_HOST} -verify_hostname ${SSL_CLIENT_HOST} -connect ${SSL_CLIENT_HOST}:1453 < /dev/null ; echo $? verify depth is 4 CONNECTED(00000003) --- Certificate chain [snip] New, TLSv1.3, Cipher is TLS_CHACHA20_POLY1305_SHA256 Server public key is 256 bit Secure Renegotiation IS NOT supported Compression: NONE Expansion: NONE No ALPN negotiated Early data was not sent Verify return code: 0 (ok) --- DONE 0 ``` My guess would be that it might be related to -quiet blocking a potential password prompt for the private key. but as the key in question is unprotected it should just work. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208891 Marcus R�ckert <mrueckert@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pmonrealgonzalez@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1208891 https://bugzilla.suse.com/show_bug.cgi?id=1208891#c1 --- Comment #1 from Marcus R�ckert <mrueckert@suse.com> --- For the record: gnutls-cli as backend works: ``` export RSYNC_SSL_TYPE=gnutls RSYNC_SSL_KEY=${SSL_CLIENT_CERT} RSYNC_SSL_CERT=${SSL_CLIENT_CERT} rsync-ssl rsync://${SSL_CLIENT_HOST}:1453/htdocs/ drwxr-xr-x 31 2022/02/22 00:33:07 . -rw-r--r-- 497 2023/02/02 21:48:45 50x.html ``` -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com