Hi -

I'm experimenting with Rebex FTP+SSL and have it working with FileZilla Server and FTP+SSL Explicit. Latest build of Rebex FTP.

Since I only installed a self-signed cert within FileZilla and have it installed on my local development machine, I'm trying to test a simple C# console application.

Similar to FileZilla Client or other FTPS command line programs, I would like to display a warning message and the certificate information for client to accept or cancel when trying to connect to an FTP+SSL server; if the client cannot verify the certificate.

How can I accomplish this?

Also, when the user response is received, Yes to continue or No to abort... is there a way I can also have a Yes and Accept where the certifcate can be trusted; even though it cannot be verified?

Any help or sample code would be appreciated.

asked 10 Jan, 03:09

dm3281's gravatar image

dm3281
191
accept rate: 0%


The ConsoleClient sample (installed with Rebex FTP/SSL) contains ConsoleVerifier.cs/.vb files that does most of this (it doesn't offer a permanent 'Accept').

The WinFormClient sample (installed with Rebex FTP/SSL as well) contains a Windows Forms version of a similar code - see Verifier.cs/.vb and VerifierForm.cs/.vb files - and it also demonstrates how to add an untrusted root certificate (this includes self-signed certificates) into the current user's "Root CAs" certificate store (to make them automatically trusted the next time). A similar code would work in a console application as well.

link

answered 10 Jan, 13:53

Lukas%20Pokorny's gravatar image

Lukas Pokorny ♦♦
2.4k28
accept rate: 31%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×14

Asked: 10 Jan, 03:09

Seen: 182 times

Last updated: 10 Jan, 13:53