<p dir="ltr">Hi, varnish does not, AFAIK, support SSL , so reading fields from a cert seems to me as not doable.</p>
<div class="gmail_quote">On 01/09/2013 7:52 AM, "Christian Felsing" <<a href="mailto:pug@felsing.net">pug@felsing.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
is there a rewrite method in Varnish which has same effect like following rule in Apache 2.4?<br>
<br>
RewriteRule ^/(.*)$ <a href="http://plone:8080/VirtualHostBase/https/plone.example.net:443/cms/VirtualHostRoot/$1
[L,P,E=remoteUser:%{LA-U:SSL_CLIENT_S_DN_CN}" target="_blank">http://plone:8080/VirtualHostBase/https/plone.example.net:443/cms/VirtualHostRoot/$1<br>
[L,P,E=remoteUser:%{LA-U:SSL_CLIENT_S_DN_CN}</a>]<br>
<br>
This rule reads CN from a client certificate and set remoteUser to CN.<br>
<br>
best regards<br>
Christian<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div>