sorry for the too quick answer (anyway check the jboss.jcml)

you should
check that you have configured the JSSE provider
in jre/lib/security/java.security
with something like
security.provider.1=sun.security.provider.Sun
security.provider.2=com.sun.rsajca.Provider
#added for jsse
security.provider.3=com.sun.net.ssl.internal.ssl.Provider
#added for jce
security.provider.4=com.sun.crypto.provider.SunJCE

maybe does the JCE help ... but in theory it should not.
think also to set the URL factory so it recognise HTTPS URL

to generate the keys
this .bat scripts does works for me

echo will generate tomcat keypair...
pause
echo.changeit>mkkey.txt
echo.maui.idt.cdc.fr>>mkkey.txt
echo.DS>>mkkey.txt
echo.ICDC>>mkkey.txt
echo.ARCUEIL>>mkkey.txt
echo.94>>mkkey.txt
echo.FR>>mkkey.txt
echo.yes>>mkkey.txt
echo.>>mkkey.txt
%JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA -keystore
%JBOSS_HOME%\conf\tomcat.jks <mkkey.txt
echo.
echo keypair normaly created...
echo.changeit|%JAVA_HOME%\bin\keytool -list -alias tomcat -keystore
%JBOSS_HOME%\conf\tomcat.jks
pause


I put that to declare the jaassecuritydomain
of tomcat

  <!-- Embedded Tomcat 4.x - JBossSX SecurityDomain (JaasSecurityDomain) -->
  <mbean code="org.jboss.security.plugins.JaasSecurityDomain" 
     name="Security:name=JaasSecurityDomain,domain=tomcat">
    <constructor>
      <arg type="java.lang.String" value="tomcat" />
    </constructor>
    <attribute name="KeyStoreURL">../conf/tomcat.jks</attribute>
    <attribute name="KeyStorePass">changeit</attribute>
  </mbean>


with the followin catalina config
  <!-- Uncomment to add embedded catalina service -->
  <mbean code="org.jboss.web.catalina.EmbeddedCatalinaServiceSX"
name="DefaultDomain:service=EmbeddedTomcat" >
    <attribute name="ConnectorType">http</attribute>
    <!-- an HTTPS connector associated with an HTTP configured in the config
attribute,
       redirectPort should be set there -->
    <attribute name="Port">443</attribute>
    <attribute name="SecurityDomain">java:/jaas/tomcat</attribute>

    <attribute name="Config"><!-- NB: case significant in XML element names
--><Service >
        <!-- an HTTP connector redirecting to an HTTPS which can be
configures as the def connector -->
        <Connector 
          className="org.apache.catalina.connector.http.HttpConnector" 
          port="80" minProcessors="3" maxProcessor="10" acceptCount="10"
          enableLookups="true"  redirectPort="443" scheme="http"
secure="false" />
      </Service>
    </attribute>
  </mbean>



> -----Message d'origine-----
> De: Coetmeur, Alain 
> the doc was wrong...
> look in previous messages about that on this mailing list
> > -----Message d'origine-----
> > De: Dan Feltham [mailto:[EMAIL PROTECTED]]
> > Objet: [JBoss-user] JBoss-2.4.4_Tomcat-4.0.1-beta - 
> Algorithm SunX509
> > not available
> > I have been trying to configure JBoss to use SSL by following the
> > instructions in the documentation I purchased. However I keep 
> > on getting
> > the following exception when I start JBoss. Does anyone 
> have any ideas
> > what I might be doing wrong. I have added a certificate to 
> > the keystore
> > using the keytool.

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to