Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: users

GnuPG asp net on web server

 

 

GnuPG users RSS feed   Index | Next | Previous | View Threaded


zenobiuszbiedrzycki at poczta

Jan 31, 2012, 11:20 AM

Post #1 of 2 (230 views)
Permalink
GnuPG asp net on web server

Dear
I would like to use GnuPG in my asp net application. I'm using bellow code and it is working correctly on localhost, but after publishing on webserwer (Windows server 2008 64 bits) encription not start, also with admin rights.
Could you tell me if is possible to use GnuPG 1.4.7 in asp net (2.0 and higher) application, and if yes what I should chaneg in bellow code to use this on web server? Maybe any addictional configuration should be done on IIS or web server? I tried all posibilities which I found on MSDN.

Thanks for your help

Dim writer As New StreamWriter(sciezka & "MyLog.log", True, System.Text.Encoding.ASCII)

Try

Dim szyfrowanie As New Process()

szyfrowanie.StartInfo.UseShellExecute = False

szyfrowanie.StartInfo.RedirectStandardOutput = True

szyfrowanie.StartInfo.CreateNoWindow = True

szyfrowanie.StartInfo.RedirectStandardError = True

szyfrowanie.StartInfo.WorkingDirectory = ConfigurationManager.AppSettings("GnuPGExeLoc")

szyfrowanie.StartInfo.FileName() = "gpg.exe"

szyfrowanie.StartInfo.Arguments() = "--recipient " & mail & " --armor --encrypt " & sciezka & nazwa_pliku

writer.WriteLine(Now() & " " & winlogin.Text & " " & "Szyfrowanie.Start")

szyfrowanie.Start()

szyfrowanie.WaitForExit()

writer.WriteLine(Now() & " " & winlogin.Text & " " & "Szyfrowanie.Koniec")

Catch ex As Exception

writer.WriteLine(Now() & " " & winlogin.Text & " " & ex.Message)

End Try


wk at gnupg

Feb 1, 2012, 10:38 AM

Post #2 of 2 (212 views)
Permalink
Re: GnuPG asp net on web server [In reply to]

On Tue, 31 Jan 2012 20:20, zenobiuszbiedrzycki [at] poczta said:

>
> szyfrowanie.StartInfo.Arguments() = "--recipient " & mail & " --armor --encrypt " & sciezka & nazwa_pliku

At least add "--batch" to the options.


Shalom-Salam,

Werner

--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.


_______________________________________________
Gnupg-users mailing list
Gnupg-users [at] gnupg
http://lists.gnupg.org/mailman/listinfo/gnupg-users

GnuPG users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.