<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Not sure what version you are running but see following links for Kea documentation around TLS, cert-required, agent and kea-shell:<div><br></div><div><ul class="simple" style="font-size: 16px; box-sizing: border-box; margin: 0px 0px 24px; padding: 0px; list-style: outside; line-height: 24px; color: rgb(64, 64, 64); font-family: Lato, proxima-nova, "Helvetica Neue", Arial, sans-serif; font-variant-ligatures: normal; orphans: 2; widows: 2; background-color: rgb(252, 252, 252); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><li style="box-sizing: border-box; list-style: outside; margin-left: 24px;"><p style="box-sizing: border-box; line-height: 24px; margin: 0px;"><code class="docutils literal notranslate" style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace; font-size: 12px; max-width: 100%; background: rgb(255, 255, 255); border: 1px solid rgb(225, 228, 229); padding: 2px 5px; color: black; overflow-x: auto;"><span class="pre" style="box-sizing: border-box;">cert-required</span></code> - this boolean parameter allows a server to not require the client certificate. Its default value is <code class="docutils literal notranslate" style="box-sizing: border-box; font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", Courier, monospace; font-size: 12px; max-width: 100%; background: rgb(255, 255, 255); border: 1px solid rgb(225, 228, 229); padding: 2px 5px; color: black; overflow-x: auto;"><span class="pre" style="box-sizing: border-box;">true</span></code>, which means the client certificate is required and the client must be authenticated. This flag has no meaning on the client side; the server always provides a certificate which is validated by the client.</p></li></ul><div><div style="display: block;"><br></div><div style="display: block;"><div style="display: block;"><div style="-webkit-user-select: all; -webkit-user-drag: element; display: inline-block;" class="apple-rich-link" draggable="true" role="link" data-url="https://kea.readthedocs.io/en/kea-2.4.1/arm/security.html"><a style="border-radius:10px;font-family:-apple-system, Helvetica, Arial, sans-serif;display:block;-webkit-user-select:none;width:300px;user-select:none;-webkit-user-modify:read-only;user-modify:read-only;overflow:hidden;text-decoration:none;" class="lp-rich-link" rel="nofollow" href="https://kea.readthedocs.io/en/kea-2.4.1/arm/security.html" dir="ltr" role="button" draggable="false" width="300"><table style="table-layout:fixed;border-collapse:collapse;width:300px;background-color:#E5E6E9;font-family:-apple-system, Helvetica, Arial, sans-serif;" class="lp-rich-link-emailBaseTable" cellpadding="0" cellspacing="0" border="0" width="300"><tbody><tr><td vertical-align="center"><table bgcolor="#E5E6E9" cellpadding="0" cellspacing="0" width="300" style="font-family:-apple-system, Helvetica, Arial, sans-serif;table-layout:fixed;background-color:rgba(229, 230, 233, 1);" class="lp-rich-link-captionBar"><tbody><tr><td style="padding:8px 0px 8px 0px;" class="lp-rich-link-captionBar-textStackItem"><div style="max-width:100%;margin:0px 16px 0px 16px;overflow:hidden;" class="lp-rich-link-captionBar-textStack"><div style="word-wrap:break-word;font-weight:500;font-size:12px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-topCaption-leading"><a rel="nofollow" href="https://kea.readthedocs.io/en/kea-2.4.1/arm/security.html" style="text-decoration: none" draggable="false"><font color="#272727" style="color: rgba(0, 0, 0, 0.847059);">23. Kea Security — Kea 2.4.1 documentation</font></a></div><div style="word-wrap:break-word;font-weight:400;font-size:11px;overflow:hidden;text-overflow:ellipsis;text-align:left;" class="lp-rich-link-captionBar-textStack-bottomCaption-leading"><a rel="nofollow" href="https://kea.readthedocs.io/en/kea-2.4.1/arm/security.html" style="text-decoration: none" draggable="false"><font color="#808080" style="color: rgba(0, 0, 0, 0.498039);">kea.readthedocs.io</font></a></div></div></td><td style="padding:6px 12px 6px 0px;" class="lp-rich-link-captionBar-rightIconItem" width="36"><a rel="nofollow" href="https://kea.readthedocs.io/en/kea-2.4.1/arm/security.html" draggable="false"><img style="pointer-events:none !important;display:inline-block;width:36px;height:36px;border-radius:3px;" width="36" height="36" draggable="false" class="lp-rich-link-captionBar-rightIcon" alt="favicon.ico" src="cid:4496AA6C-AC7D-4EE4-9411-1CE3FD0C0107"></a></td></tr></tbody></table></td></tr></tbody></table></a></div></div></div><div><br></div><a href="https://kea.readthedocs.io/en/kea-2.4.1/arm/shell.html#tls-support">https://kea.readthedocs.io/en/kea-2.4.1/arm/shell.html#tls-support</a></div><div><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Mar 14, 2024, at 15:15, CS <cs.temp.mail@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr">Interesting. I had assumed they were supplemental and not necessarily conflicting (IE that the certificate provided encrypted transmission and not necessarily authentication like a web-browser.) I was also under the guidance of the HA required certificates, although in cursory testing at the moment that does not appear to be true. If you are correct that "when cert-required is set to true, you must provide a client certificate and key to authenticate" and Micetro does not appear to have an option for authentication via cert, then I can only proceed using un:pw. <br><br>curl works like this (without certs) as does kea-shell, however micetro does not. I suppose this is likely outside the scope of this userlist and I'll follow up further in that with bluecat. <br><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><font face="courier new, monospace" color="#999999">CS, cs.Temp.Mail@gMail.com</font></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 14 Mar 2024 at 12:32, Rick Frey <<a href="mailto:gribnut@gmail.com">gribnut@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>When “cert-required” is set to true, you must provide a client certificate and key to authenticate.  A client cert is not required for using TLS connection (a server cert is).  The client cert can be used in lieu of username/password.  In the case of kea-shell, this is done with —cert and —key arguments.  <div><br><div>The —ca (CA) is the CA cert used to sign the server’s certificate so the client (kea-shell) trusts the server’s (self signed in your case) certificate.  It is not the client’s cert used for authentication.  If you are using a client cert, it is generated separately from the server cert but is typically signed by the same CA used to sign the server cert when using self signed certs.  </div><div><br></div><div>Since you are passing username/password args to kea-shell, it would appear you are not wanting to use a client cert.  If you not looking to use a client certificate for authentication use username/password instead, you’ll just need to set “cert-required” to false in your server config.</div><div><br></div><div><br></div><div><div><br><blockquote type="cite"><div>On Mar 14, 2024, at 13:41, CS <<a href="mailto:cs.temp.mail@gmail.com" target="_blank">cs.temp.mail@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Thanks for the reply Rick. In this deployment I have specified in the control agent conf:<div>"cert-required": true,</div><div>"trust-anchor": "Certificate_Autority.pem",<br>"cert-file": "ca1_cert.pem",<br>"key-file": "ca1_key.pem",</div><div><br></div><div>all pointing to self signed certs created with the help of (basically) the script I worked on in the reddit link. Stripping the certs away certainly allows the kea-shell commands to work, however this isn't the goal.</div><div><br></div><div>I don't understand the second part of your reply.</div><div>>or is set to true and you did not provide one in the sample command line. </div><div><br></div><div>Don't I show what you are suggesting I might not have done? "<span style="color:rgb(80,0,80)">--ca Certificate_Autority.pem"</span></div><div><br><div><div><div dir="ltr" class="gmail_signature"><font face="courier new, monospace" color="#999999">CS, cs.Temp.Mail@gMail.com</font></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 14 Mar 2024 at 11:22, Rick Frey <<a href="mailto:gribnut@gmail.com" target="_blank">gribnut@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>I believe that error indicates your Kea server requires a client certificate.  Per Kea documentation, the config parameter "cert-required” default is true.  Would indicate your server config didn’t set or is set to true and you did not provide one in the sample command line.  If you don’t require client cert for authentication, you can set to false in kea-ctl-agent.conf.<br id="m_-8688736123345957852m_-5722603749444443074lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Mar 13, 2024, at 16:11, CS <<a href="mailto:cs.temp.mail@gmail.com" target="_blank">cs.temp.mail@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Hey guys,<div><br></div><div>What does this mean?</div>Failed to run: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2578)<br><div><br><div>I'm back again after getting pulled off onto other projects, I am working on getting my small kea cluster running with Micetro.</div><div><br></div><div>Micetro refuses to add the servers and while I'd thought I had solved all my problems with ya'll before (kea daemons appear to be running error free) on re-approaching the problem I have notice I have not been able to get kea-shell to run against either localhost or the other server. </div><div><br></div><div>My knowledge of creating and using SSL is very poor. For this project alone I worked with the folks on reddit to develop a script for creating the self signed certs. <a href="https://www.reddit.com/r/openssl/comments/170r9ko/creating_self_signed_cert_for_kea_encryption/?utm_source=share&utm_medium=web2x&context=3" target="_blank">https://www.reddit.com/r/openssl/comments/170r9ko/creating_self_signed_cert_for_kea_encryption/?utm_source=share&utm_medium=web2x&context=3</a> so I assume the error is somewhere there. But I don't understand the reply when I run kea-shell.<br><br>kea-shell --host 10.111.45.45 --port 8000 --auth-user "bad username" --auth-password "bad password" --ca certs/Certificate_Autority.pem list-commands<br>Failed to run: [SSL: TLSV13_ALERT_CERTIFICATE_REQUIRED] tlsv13 alert certificate required (_ssl.c:2578)<br></div><div><br></div><div>Do you all know what I've done wrong or what I need to do to make the cert right?</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature"><font face="courier new, monospace" color="#999999">CS, cs.Temp.Mail@gMail.com</font></div></div></div></div></div>
-- <br>ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" target="_blank">https://www.isc.org/contact/</a> for more information.<br><br>To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br><br>Kea-users mailing list<br><a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br></div></blockquote></div><br></div>-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</blockquote></div>
-- <br>ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" target="_blank">https://www.isc.org/contact/</a> for more information.<br><br>To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br><br>Kea-users mailing list<br><a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br><a href="https://lists.isc.org/mailman/listinfo/kea-users" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br></div></blockquote></div><br></div></div></div>-- <br>
ISC funds the development of this software with paid support subscriptions. Contact us at <a href="https://www.isc.org/contact/" rel="noreferrer" target="_blank">https://www.isc.org/contact/</a> for more information.<br>
<br>
To unsubscribe visit <a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a>.<br>
<br>
Kea-users mailing list<br>
<a href="mailto:Kea-users@lists.isc.org" target="_blank">Kea-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/kea-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/listinfo/kea-users</a><br>
</blockquote></div>
-- <br>ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.<br><br>To unsubscribe visit https://lists.isc.org/mailman/listinfo/kea-users.<br><br>Kea-users mailing list<br>Kea-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/kea-users<br></div></blockquote></div><br></div></div></body></html>