Power-Netz (Schwarz) wrote:
Hi,

we have the following constellation:

A webapp uses a java class to send emails , this class uses
another class to SIGN this email via GNUPG.

Is there a way to accomplish this via more common Java APIs, like JavaMail? S-MIME? I'm no exeprt in that field...


The host was up for app. 200 days without rebooting and
everything worked fine until last friday ( An idiot @ our
computer centre switched the machine off :-) ).

After rebooting TC did come up as expected but gnupg did
not find his config files like the seckeyring aso. .

gpg searched at /.gnupgp/.... instead of /root/.gnupgp

Wht should it search "/root/.gnupgp"? Is "/root/" the home directory of "root"?


and what must happen happend , the signing didn't work anymore.
( logical, it didn't find the key anymore ;) ) .

Question is now: Why did it search at /.gnupg/ instead of the before used
/root/.gnupg/ ?

GnuPG, just as PGP, will try to locate *that* user's config directory. And the default is in ${HOME}/.gnupg (not gnupgp, AFAIK).


It restarted the TC before without problems from gnupg.
Could it be an export problem of envvars ?

maybe USERNAME?

Login as the user running tomcat and try to use GnuPG.


Nix.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to