<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:st1="urn:schemas-microsoft-com:office:smarttags"><head><META content="text/html; charset=utf-8" http-equiv="Content-Type">



<STYLE><!-- /* Style Definitions */ p.c1944170-f9f4-4159-8034-1a26ebccfc87, li.c1944170-f9f4-4159-8034-1a26ebccfc87, div.c1944170-f9f4-4159-8034-1a26ebccfc87, table.c1944170-f9f4-4159-8034-1a26ebccfc87Table        {margin:0cm; margin-bottom:.0001pt;}div.Section1 {page:Section1;}--></STYLE>

<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META content="MSHTML 8.00.6001.18975" name=GENERATOR></head><BODY>
<P CLASS="c1944170-f9f4-4159-8034-1a26ebccfc87"><FONT FACE="Arial" SIZE="2">
<DIV align=left dir=ltr><FONT color=#0000ff face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE style="BORDER-LEFT: #0000ff 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV class=gmail_quote>2011/1/10 Arjen de Korte <SPAN dir=ltr>&lt;<A href="mailto:nut%2Bdevel@de-korte.org">nut+devel@de-korte.org</A>&gt;</SPAN><BR>
  <BLOCKQUOTE class=gmail_quote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex">Citeren <A href="mailto:EmilienKia@Eaton.com">EmilienKia@Eaton.com</A>:<BR><BR>
    <DIV class=im>
    <BLOCKQUOTE class=gmail_quote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex">The main reason is to homogenize directive names between 
      apps (mainly upsmon which uses CERTPATH and upsd which uses CERTNAME) to 
      set the same property.<BR></BLOCKQUOTE></DIV>Why? The use of CERTFILE 
    (OpenSSL only) and CERTPATH/CERTIDENT/CERTREQUEST (NSS only) is completely 
    different. We have nothing to gain by reducing the number of directives 
    here, since we will need different instructions on how to fill them 
    anyway.<BR><BR>Using different names will help us help people much more 
    easily, since the directives they see in upsd.conf will already tell us if 
    NUT was build to use the OpenSSL or NSS libraries.<BR><BR>These should be 
    surrounded by #ifdef/#endif directives and make upsd complain loudly about 
    directives it doesn't understand. So if someone is accidentally using 
    CERTFILE if NUT was build with NSS, it should inform them right away (not 
    when the certificate store is being accessed). Similar the other way around.
    <DIV class=im><FONT color=#0000ff face=Arial size=2></FONT><BR>
    <BLOCKQUOTE class=gmail_quote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex">About configuration directive, only CERTFILE/CERTPATH 
      change of content (a directory instead of a file) but the semantic is kept 
      unchanged. All other SSL related directives are just for NSS mode. So 
      generate different .conf.sample files is IMHO disproportionate related to 
      the too few alterations. Perhaps add few lines of comment in these 
      .conf.sample files?<BR></BLOCKQUOTE></DIV>
    <DIV>You forget about the amount of problems we will see when people start 
    switching over from OpenSSL to NSS. There is pretty much nothing to gain by 
    consolidating these directives into one. What's wrong with<BR><BR># CERTFILE 
    &lt;certificate file&gt; (OpenSSL only)<BR># CERTFILE 
    /usr/local/ups/etc/upsd.pem<BR><BR># CERTPATH &lt;certificate directory&gt; 
    (NSS only)<BR># CERTPATH /usr/local/ups/etc/cert/upsd<BR><BR># CERTIDENT 
    &lt;certificate name&gt; &lt;database password&gt; (NSS only)<BR># CERTIDENT 
    "my nut server" "MyPasSw0rD"<BR><BR># CERTREQUEST &lt;certificate request 
    level&gt; (NSS only)<BR># CERTREQUEST [0|1|2]<BR># &nbsp;- 0 to not request 
    to clients to provide any certificate<BR># &nbsp;- 1 to require to all 
    clients a certificate<BR># &nbsp;- 2 to require to all clients a valid 
    certificate<BR><BR>valid points!<BR><BR>Emilien, can you please adapt the 
    code as per the above.<BR>I'll check how we can condition the conf sample 
    and <SPAN class=short_text id=result_box lang=en><SPAN class=hps title="Cliquer ici pour voir d'autres traductions">highlight the SSL support 
    type in the doc.<BR><BR><SPAN class=605595112-11012011><FONT color=#0000ff face=Arial size=2>&nbsp;</FONT></SPAN></SPAN></SPAN></DIV>
    <DIV><SPAN class=short_text lang=en><SPAN class=hps title="Cliquer ici pour voir d'autres traductions"><SPAN class=605595112-11012011></SPAN></SPAN></SPAN><SPAN class=short_text lang=en><SPAN class=hps title="Cliquer ici pour voir d'autres traductions"><SPAN class=605595112-11012011>&nbsp;</SPAN></SPAN></SPAN></DIV></BLOCKQUOTE></DIV></BLOCKQUOTE> </FONT></P>
<P CLASS="c1944170-f9f4-4159-8034-1a26ebccfc87"><SPAN STYLE="FONT-SIZE: 11pt; COLOR: red; FONT-FAMILY: 'Calibri','sans-serif'"><SPAN LANG="EN-US" STYLE="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><FONT COLOR="#0000ff" SIZE="2"><SPAN LANG="EN-US" STYLE="FONT-SIZE: 10pt; FONT-FAMILY: 'Arial','sans-serif'"><SPAN STYLE="COLOR: #1f497d"><SPAN STYLE="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial"><FONT COLOR="#999999">
<HR>
<FONT SIZE="1"></FONT></FONT></SPAN><SPAN STYLE="COLOR: blue"></SPAN> 
<P></P></SPAN></SPAN></FONT></SPAN></SPAN>
<P></P></P></BODY></HTML>