Note: My situation has slightly changed, so I removed all my previous edits and added a new paragraph. However the basic question listed below is still accurate.
I am trying to publish my ClickOnce VSTO application and have generated a certificate to sign the manifest. The problem is that on the target computer, of course the certificate is not accepted and my application cannot be installed.
In order to make installing possible I would like to install the certificate on the target machine as a trusted certificate. However, I cannot figure out how to proceed.
The only file Visual Studio generated for the certificate is a PFX file. This file includes the private key, and of course I don't want to publish that key. So I wonder how can I extract a public certificate from that PFX file?
Edit:
I'm now able to install the VSTO from and to everywhere (the installation site is part of the local intranet zone on all target machines).
Still on installing I get a warning that the publisher is not known, which to me actually means the certificate is not trusted, i.e. the original question remains: How to extract and then trust that certificate is done?