https://bugs.documentfoundation.org/show_bug.cgi?id=164781

--- Comment #2 from Patrick (volunteer) <[email protected]> ---
(In reply to Noel Grandin from comment #0)
> See thread here:
> https://curl.se/mail/lib-2025-01/0052.html

I don't have any experience with using curl self-signed certificate so I did
some searching to try and test if the curl that Apple bundles with macOS works
with a certificate stored in the Keychain Access application.

1. I added a self-signed certificate using the steps in the following Apple
support page and named the new certicate "My Cert":

   https://support.apple.com/en-ca/guide/keychain-access/kyca8916/mac

2. I then ran the following Terminal command:

    CURL_SSL_BACKEND=secure-transport /usr/bin/curl -v --cert 'My Cert'
'https://bugs.documentfoundation.org/'

Unfortunately, the above command always fails with the following error:

SSL: Can't find the certificate "My Cert" and its private key in the Keychain.

Any ideas what I am doing wrong? Below is the curl version output on macOS
Sequoia:

/usr/bin/curl --version
curl 8.7.1 (x86_64-apple-darwin24.0) libcurl/8.7.1 (SecureTransport)
LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.63.0
Release-Date: 2024-03-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns
ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos
Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe UnixSockets

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to