encrypt problem

Dmitry Gerasimov dgerasimov@mtu-net.ru
Wed May 22 23:02:02 2002


This is a multi-part message in MIME format.

------=_NextPart_000_0063_01C201F6.7764EA00
Content-Type: text/plain;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

Hello,
I have two problems, but maybe they have the same source problem.

GnuPG 1.0.6-2

Problem 1.
When I try to encrypt via SSH i get this response:
_______________________
Could not find a valid trust path to the key.  Let's see whether we
can assign some missing owner trust values.

No path leading to one of our keys found.
....
It is NOT certain that the key belongs to its owner.
If you *really* know what you are doing, you may answer
the next question with yes

Use this key anyway?=20
_______________________

i have only one public key in the keyring and I set Full trust to that =
key. What is the problem here? Why can't it find paths? What can I do to =
avoid that?

Problem 2.
when I try to encrypt stuff from within the PHP script using "system()" =
function it always returns false and doesn't do encrypting. I could only =
run --help from within the script and it returned help for gnupg.=20
Even --list-keys doesn't work.
I could run all of those commands via SSH and they worked fine (except =
for the problem above ), but not in the PHP script.
What is the problem here? How can I encrypt file from within a script?

Thank you,
 Dmitry.

------=_NextPart_000_0063_01C201F6.7764EA00
Content-Type: text/html;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 6.00.2712.300" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Arial Cyr" size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>I have two problems, but maybe =
they have the=20
same source problem.</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>GnuPG 1.0.6-2</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>Problem 1.</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>When I try to encrypt via SSH i =
get this=20
response:</FONT></DIV>
<DIV><FONT face=3D"Arial Cyr" =
size=3D2>_______________________</FONT></DIV>
<DIV>Could not find a valid trust path to the key.&nbsp; Let's see =
whether=20
we<BR>can assign some missing owner trust values.<BR><BR>No path leading =
to one=20
of our keys found.</DIV>
<DIV>....</DIV>
<DIV>It is NOT certain that the key belongs to its owner.<BR>If you =
*really*=20
know what you are doing, you may answer<BR>the next question with =
yes<BR><BR>Use=20
this key anyway? </DIV>
<DIV><FONT face=3D"Arial Cyr" =
size=3D2>_______________________</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>i have only one public key in the =
keyring and=20
I set Full trust to that key. What is the problem here? Why can't it =
find paths?=20
What can I do to avoid that?</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>Problem 2.</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>when I try to encrypt stuff from =
within the=20
PHP script using "system()" function it always returns false and doesn't =
do=20
encrypting. I could only run --help from within the script and it =
returned help=20
for gnupg. </FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>Even --list-keys doesn't =
work.</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>I could run all of those commands =
via SSH and=20
they worked fine (except for&nbsp;the problem above&nbsp;), but not in =
the PHP=20
script.</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>What is the problem here? How can =
I encrypt=20
file from within a script?</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Arial CYR" size=3D2>Thank you,</FONT></DIV>
<DIV><FONT face=3D"Arial CYR" =
size=3D2>&nbsp;Dmitry.</FONT></DIV></BODY></HTML>

------=_NextPart_000_0063_01C201F6.7764EA00--