Page MenuHome GnuPG

Issues Decrypting Files from Rest API on IIS
Closed, InvalidPublic

Description

In visual studio, on my work station, a vb.net app successfully encrypts and signs a file.

Move the app to the server and run under IIS, encryption fails with message, "No Secret Key". To make it more fun, encryption DOES work on the server if you use manual DOS commands.

Details

Version
gpg 2.4.0

Event Timeline

aheinecke added a subscriber: aheinecke.

Hi,
This is a classical support question. Please use one of the community channels under:
https://www.gpg4win.de/community.html
for this.

You need to provide --homedir in your server app so that gpg4win can find the key when running under a different user: https://wiki.gnupg.org/TroubleShooting#Windows_.3E_8_and_Server_2012_Task_Scheduler_Problems

Regards,
Andre