<p dir="ltr">Hi Claude,</p>
<p dir="ltr">Le 23 mai 2014 01:53, "DUVERGIER Claude" <<a href="mailto:devel.fusioninventory.ml@claude.duvergier.fr">devel.fusioninventory.ml@claude.duvergier.fr</a>> a écrit :<br>
> I'm moving to secured GLPI-Agent communications and I've a question<br>
> relating to certificate location on agent side (I get FusionInventory<br>
> Agent won't/can't read Windows certificate store).<br>
><br>
> The "/ca-cert-file" command line option (or the corresponding GUI field)<br>
> allows me to specify the CA I want the agent to trust (id. the one(s)<br>
> that signed the certificate the GLPI server is using).<br>
><br>
> Currently the installer reads the provided filepath and stores it (the<br>
> path) in the registry for the agent to use it at runtime.<br>
><br>
> The thing is: At final I would like that CA file to be stored in the<br>
> agent installation dir (the must would be in %ProgramData% be FI isn't<br>
> using that, yet).</p>
<p dir="ltr">Why do you need to install the certificate in install directory ? You can use the %ProgramData% to store the certificate and tell this path to the installer.</p>
<p dir="ltr">> *Question:*<br>
> Is there a way to tell the installer to read that filepath, copy the<br>
> file into the agent's installation base directory (into "certs\"<br>
> subdirectory for example) and store that new path into registry for<br>
> agent to use when running ?</p>
<p dir="ltr">Actually no. I don't know if the maintainer of windows has planned to add this kind of behavior. I can only suggest you to create a feature request in the forge.</p>
<p dir="ltr">> The closest I get is to copy the file myself (via scripts) and use the<br>
> following command line options:<br>
><br>
> > /installdir="C:\Program Files\FusionInventory-Agent" /ca-cert-file="C:\Program<br>
> Files\FusionInventory-Agent\certs\my_trusted_cas.pem"<br>
><br>
> I'm using "/installdir" just to be sure, in case the default location<br>
> ("C:\Program Files\FusionInventory-Agent") changes in future release.</p>
<p dir="ltr">The installdir option is the best way to achieve your current need.</p>
<p dir="ltr">> The other option I have is to, similar to *nix systems, create a central<br>
> CA "repo" on disk (say "C:\etc\ssl\certs") for any software like FI to use.</p>
<p dir="ltr">This is another good way to achieve this.</p>
<p dir="ltr">Cheers,<br>
--<br>
Kevin Roy<br>
</p>