|
332 | 332 | "certificate authorization succeeds with correct client cert");
|
333 | 333 |
|
334 | 334 | # client key with wrong permissions
|
335 |
| -test_connect_fails( |
336 |
| -$common_connstr, |
337 |
| -"user=ssltestuser sslcert=ssl/client.crt sslkey=ssl/client_wrongperms_tmp.key", |
338 |
| -qr!\Qprivate key file "ssl/client_wrongperms_tmp.key" has group or world access\E!, |
339 |
| -"certificate authorization fails because of file permissions"); |
| 335 | +SKIP: |
| 336 | +{ |
| 337 | +skip"Permissions check not enforced on Windows", 2if ($windows_os); |
| 338 | + |
| 339 | +test_connect_fails( |
| 340 | +$common_connstr, |
| 341 | +"user=ssltestuser sslcert=ssl/client.crt sslkey=ssl/client_wrongperms_tmp.key", |
| 342 | +qr!\Qprivate key file "ssl/client_wrongperms_tmp.key" has group or world access\E!, |
| 343 | +"certificate authorization fails because of file permissions"); |
| 344 | +} |
340 | 345 |
|
341 | 346 | # client cert belonging to another user
|
342 | 347 | test_connect_fails(
|
|