<div dir="ltr"><div>+1 to German's and Carlos' comments.</div><div><br></div>It's also worth pointing out that some UIs will definitely want to show SAN information and the like, so either having this available as part of the API, or as a standard library we write which then gets used by multiple drivers is going to be necessary.<div>
<br></div><div>If we're extracting the Subject Common Name in any place in the code then we also need to be extracting the Subject Alternative Names at the same place. From the perspective of the SNI standard, there's no difference in how these fields should be treated, and if we were to treat SANs differently then we're both breaking the standard and setting a bad precedent.</div>
<div><br></div><div>Stephen</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 15, 2014 at 9:35 AM, Carlos Garza <span dir="ltr"><<a href="mailto:carlos.garza@rackspace.com" target="_blank">carlos.garza@rackspace.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On Jul 15, 2014, at 10:55 AM, Samuel Bercovici <SamuelB@Radware.com><br>
wrote:<br>
<br>
> Hi,<br>
<div class="">><br>
><br>
> Obtaining the domain name from the x509 is probably more of a driver/backend/device capability, it would make sense to have a library that could be used by anyone wishing to do so in their driver code.<br>
<br>
</div> You can do what ever you want in *your* driver. The code to extract this information will be apart of the API and needs to be mentioned in the spec now. PyOpenSSL with PyASN1 are the most likely candidates.<br>
<br>
Carlos D. Garza<br>
<div class="HOEnZb"><div class="h5">><br>
> -Sam.<br>
><br>
><br>
><br>
> From: Eichberger, German [mailto:<a href="mailto:german.eichberger@hp.com">german.eichberger@hp.com</a>]<br>
> Sent: Tuesday, July 15, 2014 6:43 PM<br>
> To: OpenStack Development Mailing List (not for usage questions)<br>
> Subject: Re: [openstack-dev] [Neutron][LBaaS] TLS capability - SNI - Extracting SubjectCommonName and/or SubjectAlternativeNames from X509<br>
><br>
> Hi,<br>
><br>
> My impression was that the frontend would extract the names and hand them to the driver. This has the following advantages:<br>
><br>
> · We can be sure all drivers can extract the same names<br>
> · No duplicate code to maintain<br>
> · If we ever allow the user to specify the names on UI rather in the certificate the driver doesn’t need to change.<br>
><br>
> I think I saw Adam say something similar in a comment to the code.<br>
><br>
> Thanks,<br>
> German<br>
><br>
> From: Evgeny Fedoruk [mailto:<a href="mailto:EvgenyF@Radware.com">EvgenyF@Radware.com</a>]<br>
> Sent: Tuesday, July 15, 2014 7:24 AM<br>
> To: OpenStack Development Mailing List (not for usage questions)<br>
> Subject: [openstack-dev] [Neutron][LBaaS] TLS capability - SNI - Extracting SubjectCommonName and/or SubjectAlternativeNames from X509<br>
><br>
> Hi All,<br>
><br>
> Since this issue came up from TLS capabilities RST doc review, I opened a ML thread for it to make the decision.<br>
> Currently, the document says:<br>
><br>
> “<br>
> For SNI functionality, tenant will supply list of TLS containers in specific<br>
> Order.<br>
> In case when specific back-end is not able to support SNI capabilities,<br>
> its driver should throw an exception. The exception message should state<br>
> that this specific back-end (provider) does not support SNI capability.<br>
> The clear sign of listener's requirement for SNI capability is<br>
> a none empty SNI container ids list.<br>
> However, reference implementation must support SNI capability.<br>
><br>
> Specific back-end code may retrieve SubjectCommonName and/or altSubjectNames<br>
> from the certificate which will determine the hostname(s) the certificate<br>
> is associated with.<br>
><br>
> The order of SNI containers list may be used by specific back-end code,<br>
> like Radware's, for specifying priorities among certificates.<br>
> In case when two or more uploaded certificates are valid for the same DNS name<br>
> and the tenant has specific requirements around which one wins this collision,<br>
> certificate ordering provides a mechanism to define which cert wins in the<br>
> event of a collision.<br>
> Employing the order of certificates list is not a common requirement for<br>
> all back-end implementations.<br>
> “<br>
><br>
> The question is about SCN and SAN extraction from X509.<br>
> 1. Extraction of SCN/ SAN should be done while provisioning and not during TLS handshake<br>
> 2. Every back-end code/driver must(?) extract SCN and(?) SAN and use it for certificate determination for host<br>
><br>
> Please give your feedback<br>
><br>
> Thanks,<br>
> Evg<br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> OpenStack-dev mailing list<br>
> <a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br>
<br>
_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><span></span>Stephen Balukoff
<br>Blue Box Group, LLC
<br>(800)613-4305 x807
</div>