Welcome Guest, Not a member yet? Register   Sign In
curl - specifying a certificate
#1

Hi
I'm trying to extend the CURLRequest class to automatically download a client certificate in case a new one is available and I'm having trouble understanding the code of the setCURLOptions method.
According to the documentation if verify is a file path that file is used as the certificate. The method indeed checks whether the verify setting is a string but then attempts to get the file path from the ssl_key setting. The documentation doesn't mention anything regarding ssl_key when it comes to sending CURL requests. Also, there doesn't seem to be any code setting the ssl_key automatically based on the verify value.
It seems either I need to set ssl_key explicitely to the same value as verify, either the code should look at the verify setting instead of ssl_key and this is a bug. Could anyone have a look at this? Thanks in advance.
Reply
#2

Yeah, that dosen't look right. Should be verify instead of ssl_key.

You can submit a bug report on Github, if there aren't one already. Or better yet fix it yourself and submit a Pull Request.
https://github.com/codeigniter4/CodeIgniter4
https://github.com/codeigniter4/CodeIgni...IBUTING.md
Reply




Theme © iAndrew 2016 - Forum software by © MyBB