[Mono-list] SSL and SMTP

Sebastien Pouliot sebastien.pouliot at gmail.com
Tue Nov 11 13:12:30 EST 2008


On Tue, 2008-11-11 at 12:14 -0500, Abe Gillespie wrote:
> Hmm ... yeah, was afraid of that.  I attempted this before but was
> unsuccessful due to not importing the entire chain???  (if that's even
> the correct terminology)  I admit I'm pretty ignorant on the subject.

Look at the source code for mozroots [1] and certmgr [2] in particular
the --ssl option

[1] /mcs/tools/security/mozroots.cs
[2] /mcs/tools/security/certmgr.cs

> I need to import the certs for the account on which the Mono / asp.net
> process runs (the Apache account I assume); I auto-send emails when
> people sign up for an account on my site and when they make purchases.
>  I'm aware of this FAQ:  http://www.mono-project.com/FAQ:_Security but
> are there any other resources specific to my case (sending email via
> SSL from asp.net)?

Do something like:
(a) try sending email
(b) catch exception
(c) download using *http* (like [2]) the certificate required for the
site
(d) install them (like [1] and [2])
(e) re-send email

Sebastien

> 
> Thanks for all the help.
> -Abe
> 
> On Tue, Nov 11, 2008 at 12:03 PM, Gonzalo Paniagua Javier
> <gonzalo.mono at gmail.com> wrote:
> > On Tue, 2008-11-11 at 11:46 -0500, Abe Gillespie wrote:
> >> Nope, same problem.  Are you sure you don't already have the proper
> >> certificates installed and it would therefore succeed?
> >
> > I do have the mozilla certificates. That's why it works.
> > Your callback is never called on MS and is never called on Mono. So
> > looks like your only option for that to work is to import those
> > certificates into the "mono" store.
> >
> > -Gonzalo
> >
> >
> >
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list



More information about the Mono-list mailing list