<div dir="auto">Hi, <div dir="auto">You can test ports with OpenSSL. But you gotta need a certificate for your s_server. You can generate a self signed certificate with openssl.</div><div dir="auto">Try this</div><div dir="auto"> <a href="https://stackoverflow.com/questions/10175812/how-to-create-a-self-signed-certificate-with-openssl">https://stackoverflow.com/questions/10175812/how-to-create-a-self-signed-certificate-with-openssl</a></div><div dir="auto"><br></div><div dir="auto">And place that file in the dir were you are running the s_server command, or can use -cert argument to give the generated certificate.</div><div dir="auto"><br></div><div dir="auto">And from the s_client connect to the port that you are listening with s_server</div><div dir="auto"><br></div><div dir="auto">Client:</div><div dir="auto">openssl s_client -connect hostname:port</div><div dir="auto"><br></div><div dir="auto">Server:</div><div dir="auto">openssl s_server -accept PORT </div><div dir="auto"><br></div><div dir="auto">Regards</div><div dir="auto"><br></div><div dir="auto">Saiteja.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21-Dec-2017 7:07 PM, "warron.french" <<a href="mailto:warron.french@gmail.com">warron.french@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello Community, and Merry Christmas/Happy Seasons Greetings,<br></div>   anyway, I need some help with understanding an openssl feature - <b>s_server</b>.<br><br></div>I executed the following command:  <span style="background-color:rgb(0,0,0)"><span style="color:rgb(255,255,0)">openssl s_server -accept 21937 -www &</span></span><br><div><div><div>And immediately got the following output:<br><span style="background-color:rgb(0,0,0)"><span style="color:rgb(255,0,0)">[1] 3286<br>[sysadm@wfrench-rhel6c-cit ~]$ Error opening server certificate private key file server.pem<br>140679739017032:error:<wbr>02001002:system library:fopen:No such file or directory:bss_file.c:398:<wbr>fopen('server.pem','r')<br>140679739017032:error:<wbr>20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400:<br>unable to load server certificate private key file</span></span><br><br></div><div>In order to test ports that are not encrypted with SSL/TLS do I still have to generate a certificate and private key file (each)?<br><br></div><div>I would like to test ports from one machine using openssl s_client against a remote machine on an opposing network, running a "listener", using openssl s_server.<br><br></div><div>Perhaps I am way off?  I am not allowed to use openssl for this sort of thing?<br></div><div>Any guidance would be greatly appreciated because I want to expand my understanding of the openssl suite of commands and its offerings.<br><br><br></div><div>Have a nice day,<br clear="all"><div><div class="m_1811090426283344489gmail_signature"><div dir="ltr">--------------------------<br><font size="4" color="#000099">Warron French<br><font size="4"><font size="4"><font size="4"><br></font></font></font></font></div></div></div>
</div></div></div></div>
<br>--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/<wbr>mailman/listinfo/openssl-users</a><br>
<br></blockquote></div></div>