[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-04-02 Thread kabkhan
Yeah, got there in the end :-) Had to look at quite a lot of stuff in the various 
modules in JBoss to igure it out, but have learnt a bit from it

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828843#3828843

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828843


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-04-01 Thread acoliver
It makes sense that they're harder sometimes than the code itself.  You're setting up 
inputs and testing outputs.  Often that is a much bigger task than processing the 
inputs.  Its worth it though.  

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828671#3828671

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828671


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-31 Thread kabkhan
JaasSecurityManagerService (required by JaasSecurityDomain) makes a call to 
InitialContext.getNameParser(). This first determines the default InitialContext (i.e. 
FakeInitialContext) and calls getParser() on the default IC. This was not implemented, 
causing a StackOverflowError by the repeated recursive calls to getNameParser().

I have implemented FakeInitialContext.getNameParser() to return a
org.jnp.interfaces.NamingParser instance since this is what was being used when I 
stepped through the code running normally in JBoss using JBoss-IDE. 

I'm tidying everything up and will be committing shortly.

Cheers,

Kab

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828399#3828399

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828399


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-30 Thread kabkhan
I've based the stuff on this example, it is working and once I get the unit test 
working I'll commit. Should be in a few hours.

I added the MBean to jboss-service.xml  and as a depends to SMTPProtocol.

If you have added the SecurityDomain as an attribute to your MBean you will need to 
provide getters/setters for it in the MBean interface, and if you've added it to the 
list of properties you will need to handle it in the helper method. Anyway, should all 
be ready in an hour or two.

Kab

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828052#3828052

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828052


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-30 Thread spiritualmechanic
Yeah I added the getters/setters, but it couldn't deal with the data correctly. I'll 
check it out when you're done.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828111#3828111

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828111


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-30 Thread kabkhan
Got some problems changing the unit tests. They often seem harder to do than the code 
itself :-(

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828113#3828113

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828113


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-29 Thread kabkhan
Steve:
Yep, that's the way. I prefer the Putty SSH client to the crap one built in to windows 
though. If you haven't changed 

MK:
Thanks for looking, I will try it out again.

Cheers,

Kab

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827832#3827832;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827832Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-29 Thread kabkhan
Cool!

For some reason I assumed that the keystore was part of the ditribution. It seems to 
work now,  apart from it is having problems determining the local address of the 
server when adding the headers, which I will  look into.

Cheers,

Kab

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827837#3827837;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827837Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-29 Thread spiritualmechanic
Okay. Great.

I try hitting localhost 25 (telnet) using Putty and I get connection refused. It 
doesn't look like my JBoss is actually opening up a port on 25.

I wish I had this stuff on Linux. I may have to move it over.

Steve

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827875#3827875;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827875Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-29 Thread kabkhan
Try port 9000;-) 

The port is configured in the SMTPProtocol MBean in jboss-service.xml. The comment 
reads:

defines an SMTP server.  Presently we put it on 9000 for testing purposes.  We don't 
want
   anyone to actually use this in production until its been completed and 
hardened.

Cheers,

Kab

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827876#3827876;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827876Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-29 Thread spiritualmechanic
Okay, duh. Thanks, Kab!
Steve

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3827999#3827999

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827999


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-29 Thread spiritualmechanic
I get the same error, it seems:

19:55:19,028 INFO  [STDOUT] java.net.SocketException: Default SSL context init f
ailed: null
19:55:19,038 INFO  [STDOUT] at javax.net.ssl.DefaultSSLSocketFactory.createS
ocket(DashoA6275)
19:55:19,038 INFO  [STDOUT] at org.jboss.mail.smtp.handlers.CmdSTARTTLS.hand
leRequest(CmdSTARTTLS.java:52)
19:55:19,038 INFO  [STDOUT] at org.jboss.mail.smtp.SMTPProtocolInstance.hand
leRequest(SMTPProtocolInstance.java:151)
19:55:19,038 INFO  [STDOUT] at org.jboss.mail.ServerThread.run(ServerThread.
java:221)
19:55:19,038 INFO  [STDOUT] at java.lang.Thread.run(Thread.java:534)
19:55:19,038 ERROR [SMTPProtocolInstance] Handle IO Error
19:55:19,038 INFO  [STDOUT] java.lang.NullPointerException
19:55:19,038 INFO  [STDOUT] at org.jboss.mail.ServerThread.run(ServerThread.
java:223)
19:55:19,038 INFO  [STDOUT] at java.lang.Thread.run(Thread.java:534)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828001#3828001

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828001


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-29 Thread spiritualmechanic
Same reason. Not pointing to the right keystore.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828003#3828003

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828003


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-29 Thread spiritualmechanic
Okay, I got it going.
Phew.
Steve

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828004#3828004

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828004


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-29 Thread spiritualmechanic
I see this MBean defined in the docs, sample 4, chapter 8. Is this the kind of thing 
you're looking for, instead of tying it directly to the SMTP MBean?

  !-- The SSL domain setup --
  

   

chap8.keystore
rmi+ssl
  

Then in the SMTP MBean, we'd include something like:

java:/jaas/RMI+SSL
jboss.security:service=JaasSecurityDomain,domain=RMI+SSL

Steve


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828005#3828005

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828005


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-29 Thread spiritualmechanic
I started doingn what I mentioned, and I get this error, when trying to add the 
security domain to the SMTP MBean:

21:23:49,274 INFO  [ServiceConfigurator] Problem configuring service jboss.mail:
type=MailServices,name=SMTP
org.jboss.deployment.DeploymentException: No Attribute found with name: Security
Domain
at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.ja
va:321)

Do I need to add the security domain to the list of if/else in the setProperty helper 
method in SMTPProtocol class?

I guess I'm just figuring that it looks like in JMX it doesn't populate all the 
properties by default. Which is fine.

Steve

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3828007#3828007

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3828007


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-28 Thread mk
Hi,

I could verify the first error (where you get Default SSL context init failed: 
null). In my case this was due to the fact that I did not have kestore as specified 
in jboss-service.xml 
(/home/mkrause/testkeys in my case). I saw this error by setting 
'-Djavax.net.debug=ssl,handshake ' as a command-line argument to the VM when 
starting jboss. For some reason the line 
'System.setProperty(javax.net.debug, ssl,handshake);'
in CmdSTARTTLS.java has no effect (why?).

The second thing (Export restriction: this JSSE implementation is non-pluggable.) I 
could not verify. Even though I also live outside the US (-: What happens if you 
comment the line
'java.security.Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider());' in 
the same file?

Michael


a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=382#382;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=382Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-27 Thread kabkhan
Hi Steve,

My test works as well. My problem is that I am not able to get TLS working in a 
running server. AFAIK it the socket stuff is all meant to be working, all that is 
needed is to change the underlying security stuff.

To enable tls, leave requireSTARTTLS as false, and add the tls-enabled attribute (it 
is not there already), so that your jboss-service.xml entry looks something like:


  requireSTARTTLSfalse 
  requireClientCertfalse 
  tls-enabledtrue 


 

I then build mail.ear and deploy in a running JBoss. 


Now when I try to connect using telnet (see previous example) it pukes out on the 
SSLSocketFactory.getDefault() line in CmdSTARTTLS. I think I lied a bit yesterday when 
I said it falls over on SSLSocketFactory.getDefault(), as the stack trace shows it to 
fall over on SSLSocketFactory.createSocket(). (Maybe it is throwing this error due to 
the telnet client not being SSL enabled, I need to read up a bit on SSL context :-) )

17:34:05,205 DEBUG [CmdSTARTTLS] STARTTLS command handler called 17:34:05,205 ERROR 
[STDERR] java.net.SocketException: Default SSL context init f 
ailed: null 
17:34:05,215 ERROR [STDERR] at 
javax.net.ssl.DefaultSSLSocketFactory.createSocket(DashoA6275) 
17:34:05,215 ERROR [STDERR] at 
org.jboss.mail.smtp.handlers.CmdSTARTTLS.handleRequest(CmdSTARTTLS.java:52) 
17:34:05,215 ERROR [STDERR] at 
org.jboss.mail.smtp.SMTPProtocolInstance.handleRequest(SMTPProtocolInstance.java:151) 
17:34:05,215 ERROR [STDERR] at org.jboss.mail.ServerThread.run(ServerThread.java:221) 
17:34:05,215 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534) 
17:34:05,215 ERROR [SMTPProtocolInstance] Handle IO Error 17:34:05,215 ERROR [STDERR] 
java.lang.NullPointerException 
17:34:05,215 ERROR [STDERR] at org.jboss.mail.ServerThread.run(ServerThread.java:223) 
17:34:05,215 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534) 
17:34:05,215 DEBUG [ServerThreadPool] freeing [EMAIL PROTECTED] 


When I connect using Thunderbird (set up to use TLS if available), I get a bit further 
but then it falls over when trying to call SSLSocketFactory.createSocket() - a 
different error this time:

14:28:50,293 ERROR [STDERR] java.net.SocketException: Export restriction: this JSSE 
implementation is non-pluggable.
14:28:50,293 ERROR [STDERR] at 
javax.net.ssl.DefaultSSLSocketFactory.createSocket(DashoA6275)
14:28:50,293 ERROR [STDERR] at 
org.jboss.mail.smtp.handlers.CmdSTARTTLS.handleRequest(CmdSTARTTLS.java:59)
14:28:50,303 ERROR [STDERR] at 
org.jboss.mail.smtp.SMTPProtocolInstance.handleRequest(SMTPProtocolInstance.java:151)
14:28:50,303 ERROR [STDERR] at 
org.jboss.mail.ServerThread.run(ServerThread.java:222)
14:28:50,303 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)

(Note that the line numbers in my stack traces may be slightly of since I have been 
playing around)

I don't see why it works in one environment and not in the other, since the unit test 
is connecting via a socket as well?!? 

So I think it may have something to do with the fact that I am outside the US and have 
a JVM running a restricted version of JSSE (Java Secure Sockets Extension) :-(, but 
then why is the unit test working since it effectively does the same thing? 

It would be great to know if anybody with a US JVM is able to run this with TLS 
enabled using a client. Also, if anybody has any hints about how to get around the 
JSSE issue? 

Thanks,

Kab

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827723#3827723;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827723Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-27 Thread kabkhan
Hmm, the below does not look like jboss-service.xml to me :-) but basically add the 
tls-enabled property at the end of the SMTPProtocol MBean config in jboss-service.xml, 
and set it to true.

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827724#3827724;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827724Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-27 Thread spiritualmechanic
Can you give a little info on the telnet idea? Are you telnetting into localhost 25 
and typing EHLO etc, to see what comes out?

I'm on Windows currently, so I'm not sure if I'm doing it wrong or if the telnet 
client isn't doing it correctly.

Sorry to be such a newbie on this stuff.

Steve

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827746#3827746;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827746Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-26 Thread kabkhan
Hi,

Has anybody been able to use the TLS stuff? I get the following error, and am not sure 
what could be going on! If you have any pointers they would be most appreciated. I 
want to get it working as is, before attempting JBossSX integration.

Cheers,

Kab

17:34:05,205 DEBUG [CmdSTARTTLS] STARTTLS command handler called 17:34:05,205 ERROR 
[STDERR] java.net.SocketException: Default SSL context init f
ailed: null
17:34:05,215 ERROR [STDERR] at javax.net.ssl.DefaultSSLSocketFactory.createS
ocket(DashoA6275)
17:34:05,215 ERROR [STDERR] at org.jboss.mail.smtp.handlers.CmdSTARTTLS.hand
leRequest(CmdSTARTTLS.java:52)
17:34:05,215 ERROR [STDERR] at org.jboss.mail.smtp.SMTPProtocolInstance.hand
leRequest(SMTPProtocolInstance.java:151)
17:34:05,215 ERROR [STDERR] at org.jboss.mail.ServerThread.run(ServerThread.
java:221)
17:34:05,215 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)
17:34:05,215 ERROR [SMTPProtocolInstance] Handle IO Error 17:34:05,215 ERROR [STDERR] 
java.lang.NullPointerException
17:34:05,215 ERROR [STDERR] at org.jboss.mail.ServerThread.run(ServerThread.
java:223)
17:34:05,215 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)
17:34:05,215 DEBUG [ServerThreadPool] freeing [EMAIL PROTECTED]

 

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827566#3827566;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827566Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-26 Thread kabkhan
A few observations, please help me make sense of them if you can. I have not made any 
changes to the security settings of my jdk 1.4.2 that should affect this.

When running the TestCmdSTARTTLS unit test it seems to work, and with a bit of logging 
in place the new socket actually gets created. Why does the call to 
SSLSocketFactory.getDefault() work when running the test and not when running within 
JBoss?

I have been using SSL with JBoss-Jetty and JBoss-Tomcat for ages, and I was able to 
call SSLServerSocketFactory.getDefault() fine from CmdSTARTTLS both when running as a 
test and when running within JBoss. 

I am wondering if maybe it could be due to me being outside the US? I am not sure 
though, because then I think the test should have failed too.
Could one of you Amricans try this out and see what results you get? You have to add 
the following line to the SMTPProtocol mbean in jboss-service.xml of the project to 
enable TLS:

tls-enabledtrue 

Then use telnet and see what happens:

220 badmojo.superlinksoftware.com SMTP Server (JBMAIL SMTP Server version 0.1) ready 
26 March 2004 15:31:00 CET
EHLO localhost
250-badmojo.superlinksoftware.com Hello localhost (127.0.0.1 (127.0.0.1))
250-STARTTLS
250 AUTH LOGIN PLAIN
STARTTLS

Cheers,

Kab

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827607#3827607;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827607Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-26 Thread spiritualmechanic
Let me look at it a little. I've dealt with SX a decent bit, since we had to connect 
to a custom LDAP schema. I'm more familiar with that than TLS, but we'll see.

Steve

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827705#3827705;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827705Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-26 Thread spiritualmechanic
I get this output for both true and false for this line in jboss-service.xml:

requireSTARTTLSfalse 
  
Is that the right property you were referring to? Maybe there's another I missed?


22:07:10,979 DEBUG [CmdSTARTTLS] STARTTLS command handler called
[junit] res was 220 Ready to start TLS
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 4.997 sec
[junit] Output:
[junit] configureMBeanServerFactory
[junit] not returning from allready run
[junit] got the server impl
[junit] done setting up properties
[junit] 22:07:08,084 WARN  [Server] Caught Throwable Error, this probably means 
we've already set the URLStreamHAndlerFactory before


a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827706#3827706;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827706Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-26 Thread spiritualmechanic
I'm learning about a lot of this mail stuff. I've been in the web developer world too 
long :)

ftp://ftp.isi.edu/in-notes/rfc2246.txt

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827707#3827707;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827707Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development


[JBoss-dev] [Mail Services] - Re: TODO: TLS and JBossSX integration

2004-03-26 Thread spiritualmechanic
SMTP Service Extension for Secure SMTP over TLS

ftp://ftp.isi.edu/in-notes/rfc2487.txt

This one doesn't seem to be as low-level. Probably more directly relevant.

a 
href=http://www.jboss.org/index.html?module=bbop=viewtopicp=3827708#3827708;View 
the original post/a

a 
href=http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3827708Reply 
to the post/a


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development