IE 6.0 Mutual auth with Sun One 8

Hello,
What I intend to do - generate new server key pair, then generate client key pair. Export client pair to IE (newest) for mutual auth.
Command I use:
Server pair:
1. keytool -genkey -keyalg rsa -keystore keystore.jks -storepass pass -alias server -dname "cn=www.myCompany.com,o=O2,ou=Ou2,L=W,C=US,S=W"
2. keytool -export -alias server -file server.cer -keystore keystore.jks --storepass pass
3. keytool -noprompt -import -v -trustcacerts -file server.cer -alias server -keystore cacerts.jks -storepass pass2
Client pair:
1. keytool -genkey -keyalg rsa -keystore keystore.jks -storepass ssaperots -alias client -dname "cn=client1,o=O2,ou=Ou2,L=W,C=US,S=W"
2. keytool -export -alias client -file client.cer -keystore keystore.jks --storepass pass
3. keytool -noprompt -import -v -trustcacerts -file client.cer -alias client -keystore
cacerts.jks -storepass pass2
Now I replace domain1/cacerts.jks and domain1/keystore.jks with new files, restart the server.
Mutual auth with jax-rpc from j2ee tutorial works flawlessly.
Finally I want IE to be able to do mutual auth:
Using jstk-1.0.1 from http://www.j2ee-security.net/book/dnldsrc/
jstk-1.0.1/bin/crypttool.sh export -keystore keystore.jks -alias client -storepass pass -outform PKCS12
I have client.p12 which I import into IE personal certificates.
Enter secure site on the server. Server cert is OK. I choose client1 pair for mutual auth.
Then I see in the browser: HTTP Status 403 - Access to the requested resource has been denied.
During the handshake in server.log I see:
[#|2004-06-02T01:12:42.496+0200|WARNING|j2ee-appserver1.4|org.apache.coyote.http11.Http11Processor|_ThreadID=11;|
Exception getting SSL Cert
java.net.SocketException: Socket Closed
a lot of stuff here
[at the end]
http1043-Processor3, handling exception: java.net.SocketTimeoutException: Read
I tries also additional java security package with JDK 1.5.0 beta to generate PKCS12 pair.
The same error diffrent exceptions.
Question:
1. Did I do something wrong ?
2. Is the PKCS12 file corrupted in some way ?
Thank You.

OK. I answer to my own question ;)
The problem I described in post 1 didn't even exist. I figured it by changing admin console to use mutual auth. It works.
However I change the question. I modify bookstore2 app from sun app server 8 tutorial sdk 1.4 to use mutual auth. I present deployment descriptors generated by deploytool.
This is sun-web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 8.0 Servlet 2.4//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun-web-app_2_4-0.dtd">
<sun-web-app>
<context-root>/bookstore2</context-root>
<security-role-mapping>
<role-name>appuser</role-name>
<principal-name>admin</principal-name>
</security-role-mapping>
<resource-ref>
<res-ref-name>jdbc/BookDB</res-ref-name>
<jndi-name>jdbc/BookDB</jndi-name>
<default-resource-principal>
<name>PBPUBLIC</name>
<password>PBPUBLIC</password>
</default-resource-principal>
</resource-ref>
<cache enabled="false" max-entries="4096" timeout-in-seconds="30">
<default-helper/>
</cache>
<jsp-config>
<property name="keepgenerated" value="true"/>
</jsp-config>
</sun-web-app>
This is web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>bookstore2</display-name>
<context-param>
<param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
<param-value>messages.BookstoreMessages</param-value>
</context-param>
<listener>
<listener-class>listeners.ContextListener</listener-class>
</listener>
<servlet>
<display-name>Dispatcher</display-name>
<servlet-name>Dispatcher</servlet-name>
<servlet-class>dispatcher.Dispatcher</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Dispatcher</servlet-name>
<url-pattern>/bookstore</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Dispatcher</servlet-name>
<url-pattern>/bookcatalog</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Dispatcher</servlet-name>
<url-pattern>/bookdetails</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Dispatcher</servlet-name>
<url-pattern>/bookshowcart</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Dispatcher</servlet-name>
<url-pattern>/bookcashier</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Dispatcher</servlet-name>
<url-pattern>/bookordererror</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Dispatcher</servlet-name>
<url-pattern>/bookreceipt</url-pattern>
</servlet-mapping>
<jsp-config>
<jsp-property-group>
<display-name>bookstore2</display-name>
<url-pattern>*.jsp</url-pattern>
<el-ignored>false</el-ignored>
<scripting-invalid>false</scripting-invalid>
<is-xml>false</is-xml>
<include-prelude>/template/prelude.jspf</include-prelude>
<include-coda>/template/coda.jspf</include-coda>
</jsp-property-group>
</jsp-config>
<security-constraint>
<display-name>SecurityConstraint</display-name>
<web-resource-collection>
<web-resource-name>WRCollection</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>TRACE</http-method>
<http-method>DELETE</http-method>
<http-method>POST</http-method>
<http-method>OPTIONS</http-method>
<http-method>HEAD</http-method>
<http-method>GET</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>appuser</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>CLIENT-CERT</auth-method>
</login-config>
<security-role>
<role-name>appuser</role-name>
</security-role>
<resource-ref>
<res-ref-name>jdbc/BookDB</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
<res-sharing-scope>Shareable</res-sharing-scope>
</resource-ref>
</web-app>
Using these I can't login.
It is because I don't have an option to specify a user when I login.
Qustions:
1. How to change the application so it uses only client-cert (without users and passwords)
2. How to change the application so login is possible with client-cert with specified user - admin?
(my first guess - do form auth then client-cert, client-cert -> form login not possible ?)
3. Are the certificated bound to specyfic application server users ?
Thanks.

Similar Messages

  • Integration of Sun One Web Server 6.0 with Sun One App Server 7.0

    Is it possible to integrate Sun One Web Server 6.0 with the Sun One App Server 7.0??
    Sun One App Server 7.0 comes with the in-built HTTP listener. But we want to know if there is a way by which we can use the Sun One Web Server 6.0 with the App Server 7.0 and not the in-bulit HTTP listener?

    As suggested by you, I have used Sun ONE Application Server 7's plugin to connect the Sun ONE Web Server 6.0 with Sun ONE Application Server 7 as per the information given in Sun ONE Application Server 7 Administrator's Guide.
    I have added the plugin package to the webserver and added the following into the magnus.conf:
    Init fn="load-modules" shlib="C:/iPlanet/Servers/plugins/passthrough/passthrough.dll" funcs="init-passthrough,auth-passthrough,check-passthrough,service-passthrough" NativeThread="no"
    Init fn="init-passthrough"
    and to the obj.conf
    NameTrans fn="assign-name" from="(/A2P2Test|/A2P2Test/*)" name="passthrough"
    <Object name="passthrough">
    ObjectType fn="force-type" type="magnus-internal/passthrough"
    Service type="magnus-internal/passthrough" fn="service-passthrough" servers="http://<application server http listener>"
    Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
    </Object>
    The webserver starts up without any errors but never forwards any requests what might I be doing wrong?

  • Getting HTTP Status 500 error with sun one application server...

    Hi,
    I am trying to develop a sample application and try to run with sun one application server. I followed the tutorial. My application client is working fine. But my web client is producing the following error. I think we don't need to install Tomcat seperately when we have the application server or do I have to... any suggestions...
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    No Java compiler was found to compile the generated source for the JSP.
    This can usually be solved by copying manually $JAVA_HOME/lib/tools.jar from the JDK
    to the common/lib directory of the Tomcat server, followed by a Tomcat restart.
    If using an alternate Java compiler, please check its installation and access path.
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:132)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:356)
         org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:420)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:463)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:444)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:557)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:306)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         sun.reflect.GeneratedMethodAccessor79.invoke(Unknown Source)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server-PE-8.0 logs.
    Sun-Java-System/Application-Server-PE-8.0

    You do not need to install Tomcat. SJSAS contains a web container. The error you are seeing could be caused by a few reasons. There are many previous threads on this issue, perhaps you could search the forum. I used the following search term, "Unable to compile class for JSP" ,and got many hits.
    http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=J2EE+Software+Development+Kit+%28J2EE+SDK%29&qp=forum%3A136&qt=Unable+to+compile+class+for+JSP

  • Using JMF API with Sun One Studio v4 update 1 (community ed.)

    Having great difficulty trying to utilise the JMF API I've just downloaded with Sun One Studio v4, update 1 (community edition).
    After installing the API, I tried copying the the .jar files under the lib folder of JMF to the lib folder of sun one studio.
    Although admittedly a novice in the field of adding API's I have attempted to add the .jar files into the libary of recognised modules but made no progress.
    The problem is that although JMF API is installed, Sun One Studio does not seem to be aware of this and so does not recognise any associated libraries e.g. java.media or JMFApplet.
    I would appreciate advice from anyone who knows how to configure Sun One Studio to utilise the JMF API.
    Mark

    All right, I think I may have solved it. After mounting jmf.jar I needed to update the parser database. All the libraries seem to be there.
    Can someone clarify though, the trial program i'm using makes reference to: java.media
    I don't have this module. I do instead have javax.media which I believe includes all the methods of the java version. Am I right or am I missing this crucial module??

  • Debug RMI - Service with Sun One Studio

    Hi, I'm trying to debug an rmi - service with sun one studio 4u1 (win nt 4.0). To do so I start the rmid daemon via
    rmid -J-Xdebug -J-Xnoagent -J-Djava.compiler=NONE -J-Xrunjdwp:transport=dt_shmem,server=y,address=dime,suspend=n -J-Djava.security.policy=%POLICY% -log %RUNDIR% >%RUNDIR%\server.log
    Then I register the service to the daemon and attach the debugger in the studio to the address "dime". This seems to work, but the service does not stop at breakpoints set in the debugger.
    Can someone help?

    I set the breakpoints at false line numbers (method heads). Now It works fine (breakpoints, watches, ...). The only thing is, that the current line is not visible in the source (although the line number is displayed correctly).

  • Jdeveloper 9i with Sun ONE (iPlanet) Web Server 6.0

    Hi,
    Has any one working Jdeveloper 9i with Sun ONE (iPlanet) Web Server 6.0 ?
    When i add new application server it gives only Oracle App Server and Web Logic.
    Thanks
    Ramesh

    Currently JDeveloper provides Application server connections to Oracle9iAS and WebLogic, which can be used to deploy J2EE Modules.
    JDeveloper allows to create assemble generic J2EE archives from projects which can used to deploy to other application servers.
    Check out How-To documents on this topic
    http://otn.oracle.com/products/jdev/howtos/content.html
    raghu
    JDev Team

  • Netmeeting Integration with Sun One Portal Server 6.2

    Hi,
    we are trying to integrate MS Netmeeting with Sun one portal server 6.2,using netlet ,has anybody done similar things earlier .then plz help me,
    or any other solution to call netmeeting from portal.

    Suggest trying other forums, as we're specialized into Messaging Server, not portal nor Netmeeting

  • Netmeting  with Sun one Portal server 6.2

    Hi,
    we are trying to integrate MS Netmeeting with Sun one portal server 6.2,using netlet ,has anybody done similar things earlier .then plz help me,
    or any other solution to call netmeeting from portal.

    Suggest trying other forums, as we're specialized into Messaging Server, not portal nor Netmeeting

  • Fail to run my first Servlet with Sun ONE Studio 4 Update 1 (+ bi Tomcat)

    Hello !
    I failed to run my first Servlet with Sun ONE Studio 4 update 1 ( with built in Tomcat)
    I think that I followed most of the online instructions,
    so I successfully run a JSP file,
    but I failed with my first servlet:
    The error message is:
    "Standard Wrapper[:MyServlet]: Marking servlet MyServlet as unavailable
    javax.servlet.ServletException: Wrapper cannot find servlet class com.hemmerling.myservlet.MyServlet
    or a class it depends on
    So please don�t ask me for the code of the servlett ( simply taken from a book),
    but tell me why the one-and-only servlett was not found. what might I have done wrong, if I did everything I did to run the JSP file, too ?
    Of couse I copied the file into the "Classes" directory of the Webmodule ( WEB-INF ) and "processed" it, so that I was able to execute it.
    Any suggestions ?
    Tia
    Sincerely
    Rolf

    Tough to say, but try:
    1. Put the servlet in a package. If you're using the default package (class file in WEB-INF/classes directory, then Tomcat may not find it.
    2. Check out web.xml to ensure the <servlet> and <servlet-mapping> entries are correct.
    3. Make the servlet as simple as possible so you're sure that it is the servlet itself that cannot be found and not some other class that it uses.
    Good Luck

  • Problem with SUN ONE STUDIO Update 4

    Hi,
    I created a simple entity bean with finder methods and business methods.
    But when I am trying to test the entity bean by generating the New EJB Client, and at the time executing the EJB client test client the following error as occured.
    [b][b]Deploying... EAR Unable to deploy theC:/developer/JavaProject/test/test.earApplication
    Deployment Error -- Error while running ejbc -- Fatal Error from EJB Compiler -- -- Error while processing CMP beans.
    Please help me
    Thank you

    Hi ,
    To know the reasons for deployment failure , you
    could run your application using the Sun One verifier tool. Right click your application node and select Sun one verifier under the tools category.
    Please post the results of the verifier tool in case you are not able to resolve the problem.
    -Amol

  • Build a EJB/ Application with Sun One Studio and deploy to Weblogic

    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development, but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic 6.1.
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for the weblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar with the deployment
    process?
    Many Thanks for all of you.
    Ivan

    where do you get the weblogic plugin from ?
    i am intrested in doing the same thing
    thanx
    prem
    "Ivan" <[email protected]> wrote in message
    news:[email protected]..
    >
    Dear all,
    My boss require me to use Sun One Studio 4 update 1 to do the development,but
    I find it's a nightmare to deploy the EJB/ application to the WebLogic6.1.
    >
    I've already installed the weblogic plug-in in the Sun One Studio.
    During deploying I could not find any setting that ask me for theweblogic-ejb-jar.xml.
    So I think the deployment will fail.
    Is there any others tutorial or e-book that can help me to familiar withthe deployment
    process?
    Many Thanks for all of you.
    Ivan

  • Problem with Sun ONE Assembly Tools

    I try to start "Sun ONE Assembly Tools" but it gives me the error as the following:
    "Another copy of AssemblyTool maybe running with the same userdir.
    Please exit from previous session or remove the lock file."
    I used to run this tool before and it worked without any problem. But now it cannot run properly and there isn't have any running session.
    Please give me the suggestion of how to solve this problem and I'd like to know where is the lock file of this tool.
    Thanks very much...
    Worawisut

    I cannot wait for reply any more :-)
    I try to de compile "com.sun.enterprise.tools.deployment.main.DeployTool.class" in "appserv-assemblytool.jar"
    and see that when Assembly Tool start ,it will create filename "lock" in the folder "C:\Documents and Settings\<User>\.assemblytool".
    This file is used to lock the tool's session.
    I delete it and then run the tool again.
    Fortunately,it works fine.
    Thanks.

  • Integration of Interwoven with Sun ONE PS6

    Hi,
    where can i get the details of Sun ONE PS6 integration with Interwoven TS.
    I need low level details(like API details).
    Any API's available for this?????????????
    regards
    Arun

    Hi jay
    Thanks for your Information
    We have our clamav library (libclamav.so) installed in following dir
    root@--------- # pwd
    /usr/local/lib
    root@--------- # ls
    libbz2.a libclamav.la libclamav.so.1 libexpatw.a libexpatw.so libexpatw.so.1.5.0 libclamav.a libclamav.so libclamav.so.1.0.17 libexpatw.la libexpatw.so.1 pkgconfig
    this is my msg version
    root@-------------- # ./imsimta version
    Sun Java(tm) System Messaging Server 6.2-3.04 (built Jul 15 2005)
    libimta.so 6.2-3.04 (built 01:43:03, Jul 15 2005)
    SunOS ndlbbpa1-a-fixed 5.9 Generic_118558-28 sun4u sparc SUNW,Sun-Fire-V240
    As my organization told us to do the msg scanning through conversion channel
    So here's my setup for that
    mappings file
    CONVERSION
    in-chan=tcp_auth;out-chan=tcp_*;convert yes
    in-chan=tcp_auth;out-chan=tcp_*;convert yes
    imta.cnf file
    ! conversion
    sourcespamfilter2optin virus
    conversion-daemon
    option.dat file
    spamfilter2_config_file=/data/sunjava/Sunmsg/config/clamav.opt
    spamfilter2_library=/usr/local/lib/libclamav.so
    spamfilter2_optional=1
    Spamfilte2_string_action=data:,addtag "[PROBABLE SPAM DETECTED]";
    1) can you tell me the options which i have to specify in my
    clamav.opt file? if possible give me example file.
    2) I think the above setup is correct and if i have to made any
    changes please let me know?
    3) In your option.dat file you have specified
    sourcespamfilter2 sourcespamfilter1optin spam
    here you have not specified "virus" for sourcespamfilter2 is it correct ??
    Thanks in Advance
    Jai

  • Enabling Network Security with Sun One webserver

    Hi experts
    I have a sun server with solaris and sun one webserver loaded
    now when i am connecting the web server from any of the client browser it is not asking for any paassword
    how can i enable the network password for webserver
    Damu

    I can't believe it, the problem was because I have formated the object definition element in obj.conf with a tab before Service. It seems Service needs to start from column 1, was sun webserver made is cobol?
    <Object name="weblogic" ppath="*/weblogic/*">
    Service fn=wl_proxy WebLogicHost=laptop-vikas.nj.sena WebLogicPort=7001 PathTrim="/weblogic"
    </Object>

  • Are there serious bugs with SUN one studio

    sometimes when I an trying to perform some particular type of operations in SUN one studio community edition on my pentium III 600MHz 256MB RAM system, SUN one studio vapourises from the deskop even faser than it does when u exit normally, i changed platform to Linux installing the linux binaries..the same problem also occurs..I heppens usually when i right click on a package trying to add new bean, or JSP or some other features
    Well i hope it is not my own machine that is bugging SUN studio
    Thanks

    I do but it still retains the same problem. I have jdk1.4.1 and yet it just vaporises from my desktop. Do SUN one studio have serious memory conflict with certain processes or what.

Maybe you are looking for

  • Add code to a button?

    Hi friends, [Apps R12] If I add a button to an OAF screen : I have no idea of how : - to add code when it's clicked... The idea would be to call a database procedure that receives,as parameters, certain values of that OAF screen and that returns, in

  • My online number is being used for scams

    Hi all, I´ve received a call today from a person who´s been called to be told that she should pay 95EUR for some bank papers in Italy. I´ve never had this type of activities. So  my number showed up on their phone and they called me back to ask what

  • Are There Any Advantages To High Resolution Displays?

    I am looking to buy a new 17 inch MacBook Pro at the end of this month and seeking practical advice on configuration options I should choose. I am curious about what other people think of the advantages and disadvantages of the high resolution displa

  • Configuring Oracle 9i AS to use Java 1.4

    Hi All, Please help me in configuring Oracle 9i Application Server Release 2 to use Java 1.4 Version instead of 1.3 version.

  • Excel Header Format using GUI_DOWNLOAD

    Hi Experts, I need to download the excel file with the below shown header format. I can able to download as excel using GUI_DOWNLOAD. But I don't know how to bring the first row of the above pasted image. Please advice any way to download the file wi