3 ms·
Yeah, I was surprised by that part until: "We must also specify the expected peer name on the presented certificate with the `CN_match` option, it will not be
by viraptor 12y ago
Yeah, I was surprised by that part until:
"We must also specify the expected peer name on the presented certificate with the `CN_match` option, it will not be inferred from the URL and if it is not specified, the name on the certificate will not be validated."
WTF? Who ever got the idea that this is something that can ever hit production?
- RobAley 12y agoAgain the article is out of date, it's now parsed from the URL if you don't specify a CN_match (which you can still do if you need to).
- DaveRandom 12y agoNot before 5.6 (where CN_match is actually deprecated in favour of peer_name)
- viraptor 12y agoThis doesn't matter now. People don't (and sometimes cannot) upgrade quickly. Also, documentation for the latest version still says peer_verify defaults to false and CN_match doesn't mention being computed automatically. Effectively if you write any code you're not going to deploy yourself, you have to specify the CN_match and verify_peer. Others will not know about the limitations, so this function is messed up until after 5.5 is EOLed. Designing APIs is hard and bad defaults can hurt for many major versions after they're changed.
- chc 12y agoIt is? Which of the versions of PHP linked from the homepage of PHP.net do this? I didn't think any of them did.