Don't ask to ask, just ask | |
PerlMonks |
[SOLVED] Make IO::Socket:SSL refuse connections without client certificateby chepati (Initiate) |
on Oct 12, 2016 at 19:43 UTC ( [id://1173875]=perlquestion: print w/replies, xml ) | Need Help?? |
chepati has asked for the wisdom of the Perl Monks concerning the following question: Update: the winning combination was
Thanks to all who replied and offered the correct answer. Hi,I'm a beginner perl programmer. I need a very simple "daemon" that when queried over tcp would return a very simple string. It needs to use SSL to verify the client and refuse to send the string, or anything else for that matter, of the client does not properly authenticate itself. I've cobbled together a very simple script:
And this is a simple client script:
This works as expected. Opening the server in chrome and authentication with the client certificate also works. However, the folowing also works even though it shouldn't:
It shouldn't work because I'm not supplying the client certificate. How can I force IO::Socket::SSL refuse to send the string without a client certificate? Thanks, IvanK.
Back to
Seekers of Perl Wisdom
|
|