How to load a client certificate into a servlet to access a Web Service

Hi,
I am having the following problem:
I am trying to use a Web Service client (Axis) within a servlet running under
WebLogic 8.1.
I would like to have mutual SSL-based authentication between the client and the
server hosting the Web Service. Thus, my client has to send a certificate to the
server.
My problem is: how to get the certificate into the request? I know that, for example,
the HttpsURLConnection class of WebLogic has a loadIdentity method. But I can't
use this class.
Is there any other method to make sure that SSL requests use my client certificates?
By the way, I am receiving the following error message from the server:
<Apr 13, 2004 5:35:10 PM EEST> <Debug> <TLS> <000000> <Required peer certificate
s not supplied by peer>
<Apr 13, 2004 5:35:10 PM EEST> <Warning> <Security> <BEA-090508> <Certificate
ch
ain received from 127.0.0.1 - 127.0.0.1 was incomplete.>
Anyone has an idea?
Thanks for any hints,
Zoltan Schreter
Nokia

Hi all,
I have solved this problem basically by using weblogic's SSLSocketFactory instead
of the default one used by Axis. I created a custom HttpSender (MyHttpSender)
which uses this Factory. I then created a custom Config class which I pass to
the constructor of Service. The Config class looks like this:
public class MyConfig extends SimpleProvider {
* Constructor - deploy client-side basic transports.
public MyConfig() {
deployTransport("java", new SimpleTargetedChain(new JavaSender()));
deployTransport("local", new SimpleTargetedChain(new LocalSender()));
deployTransport("http", new SimpleTargetedChain(new MyHttpSender()));
The relevant code within MyHttpSender looks something like this:
SSLClientInfo sslinfo = new SSLClientInfo();
File ClientKeyFile = new File("C:/certificates/testkey.pem");
File ClientCertsFile = new File("C:/certificates/testcert.pem");
InputStream[] ins = new InputStream[2];
ins[0] = new FileInputStream(ClientCertsFile);
ins[1] = new FileInputStream(ClientKeyFile);
String pwd = "mykeypass";
sslinfo.loadLocalIdentity(ins[0], ins[1], pwd.toCharArray());
javax.net.SocketFactory sockf = weblogic.security.SSL.SSLSocketFactory.getJSSE(sslinfo);
sock = sockf.createSocket(host, port) ;
By the way, this change also solved the other problem I posted about (not being
able to tunnel through the https proxy).
Cheeers,
Zoltan Schreter
Nokia
"Tony" <TonyV> wrote:
Which API's are you currently using for the SSL communication in the
client
side?
Tony
"Zoltan Schreter" <[email protected]> wrote in message
news:[email protected]...
Hi,
I am having the following problem:
I am trying to use a Web Service client (Axis) within a servlet runningunder
WebLogic 8.1.
I would like to have mutual SSL-based authentication between the clientand the
server hosting the Web Service. Thus, my client has to send a certificateto the
server.
My problem is: how to get the certificate into the request? I knowthat,
for example,
the HttpsURLConnection class of WebLogic has a loadIdentity method.But I
can't
use this class.
Is there any other method to make sure that SSL requests use my clientcertificates?
By the way, I am receiving the following error message from the server:
<Apr 13, 2004 5:35:10 PM EEST> <Debug> <TLS> <000000> <Required peercertificate
s not supplied by peer>
<Apr 13, 2004 5:35:10 PM EEST> <Warning> <Security> <BEA-090508><Certificate
ch
ain received from 127.0.0.1 - 127.0.0.1 was incomplete.>
Anyone has an idea?
Thanks for any hints,
Zoltan Schreter
Nokia

Similar Messages

  • How to load data from Quikbooks into PeopleSoft General Ledger module ?

    Folks,
    Hello.
    My client's data is currently stored in Quikbooks.
    After install PeopleSoft FSCM 9.0, I need to load the data from Quickbooks into PeopleSoft General Ledger module. But I don't know how to use PeopleSoft Integration Broker to integrate with Quikbooks.
    Can any folks tell me how to load data from Quikbooks into PeopleSoft General Ledger module ?

    Hi,
    If the data load is one time process, then you can use PL/SQL or datamover to load the data to PeopleSoft application.
    If you want to load the data in real time, then you need to create In-bound and out-bound nodes to perform the transaction.
    Thanks
    Soundappan

  • Loading a Machine Certificate into System Keychain

    Does anyone know how to load a machine certificate (with a private key) into the System keychain?
    I can load the certificate if it doesn't have a private key, but then Internet Connect won't recognize it as a valid machine certificate. It seem Internet Connect only looks in the shared System Keychain for certificate for the L2TP over IPSec certificate authenticated protocol.
    I tried manually loading a Keychain that had a machine certificate in it already, but I ran into the old problem of the System Keychain requesting a password that nobody knows and when racoon tries to get the certificate from the System keychain it can't and fails.
    mtennes@asher:>>sudo /usr/sbin/systemkeychain -v -t
    Testing system unlock of /Library/Keychains/System.keychain
    (If you are prompted for a passphrase, cancel)
    System unlock is NOT working
    If I create a fresh System keychain that can be unlocked automatically I can't load a valid machine certificate with a private key into the System keychain, I can however load that same certificate into any keychain I create or event the X509Anchors keychain, but of coarse Internet Connect doesn't look there.
    mtennes@asher:>>sudo rm -rf System.keychain
    mtennes@asher:>>sudo /usr/sbin/systemkeychain -v -C
    /Library/Keychains/System.keychain installed as system keychain
    mtennes@asher:>>sudo /usr/sbin/systemkeychain -v -t
    Testing system unlock of /Library/Keychains/System.keychain
    (If you are prompted for a passphrase, cancel)
    System unlock is working
    Any ideas?
    PowerMac G5 2.7GHz DP   Mac OS X (10.4.6)   thawte Web Of Trust Notary

    How about using
    sudo systemkeychain -v -k /Library/Keychains/System.keychain -C "password"
    where “password” is the new keychain password that you want to give to the System keychain?
    That way you should be able to unlock the System.keychain to add whatever you need to add to it, because now you know the password.
    Ronald

  • How to load a client file in a clob using sqlcl

    How to load a client file in a clob using sqlcl

    You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.

  • How to load BeginningBalance and movements into HFM via FDM from ERPI

    I have a file generated by ERPI with the columns of |AMOUNT|BEGIN_BALANCE_DR|BEGIN_BALANCE_CR|PERIOD_NET_DR|PERIOD_NET_CR|
    among many other columns.
    How can load them via FDM into the Custom1 dimension in HFM, which contains BeginningBalance, Additions, Disposals, etc.
    So basically I will have a trial balance, which I can compare with GL and OBI.

    Hello
    You can use the IDOC SOPGEN01 for that purpose.
    Please check transaction WE60 for IDOC documentation and there are many old threads with information about this IDOC.
    BR
    Caetano

  • How do I install (import) certificat into FireFox using commad line?

    I can import certificat using certutil.exe in command line, but this certificat is available only in Internet Explorer.
    I can import certyficat into FireFox using its GUI. I must import that certificat on more then 60 PCs.
    Question is: how do I install (import) certificat into FireFox using commad line?

    HI ScanBit,
    Thank you for your question, in order to import the certificate in the command line you will need these resources:
    *[https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS/tools/NSS_Tools_certutil]
    If you have any other questions about this, we are happy to help.

  • How to load the google map into an empty movieclip

    how to load the google map into an empty movieclip ?  Thank you

    if you're using as3, check the google maps api for flash.  if you're using as2, check the google maps api for javascript and use the externalinterface class in flash.

  • How to load MI Client on blackberry stimulator

    Hi,
    Can someone tell me how to execute the MI program on blackberry stimulator.
    Are there any docs available describing how to load MI client on blackberry stimulator & then execute the MI program.
    Regards,
    sandeep

    Hi Sandeep,
    I do not think this is possible to run MI Client on a blackberry (OS, Memory and so on), as MI Client only runs on PPC2003SE with at least 64 mb. Check out the PAM in service marketplace for mi client.
    I guess you mix up Mobile Sales Online running on Blackberry, but here the appp is running server side (J2EE / WebDynpro )and BB is only rendering HTML pages.
    Rgds Thomas

  • How to load budgeted sales dollars into SAP.

    hello experts
    we are using ecc 5.0
    pl advise how how to load budgeted sales dollars into SAP
    thnks
    vinod

    Hello,
    Budgets are like threshold figures where your actuals cannot exceed your budgets.
    Whereas, planned data is for variance analysis with your actuals.
    You can configure the cost center planning so that the user can upload the data through KP06 or KP26
    This is controlled by planning are in your planning profile. You need to use "Cost ctrs: Cost element/activity inputs" planning area for this purpose.
    Hope you are conversant with Integrated excel upload.
    To do integrated excel upload of cost center plan data.
    IMG ==> Controlling ==> Cost Center Accounting ==> Planning ==> Manual Planning User Defined Layouts - Create your own layout or copy from standard layout and change it.
    IMG ==> Controlling ==> Cost Center Accounting ==> Planning ==> Define User Defined Planner Profiles
    Copy the SAPALL to ZSAPALL. You cannot change SAPALL as it is standard.
    In ZSAPALL planner profile, select proper planning area and enter your layout.
    Tick Integrate Excel.
    Once the popup for KP06 comes, you need enter the data and save it. It would generate the file name.
    With the same file name you need upload the plan data by using KP06.
    In KP06
    Extras ==> Excel Planning ==> Upload
    Select the file as prepared in accordance with format at the time of generating the file name.
    Hope this solves your problem.
    Please let me know if you need futher help.
    Regards,
    Ravi

  • How to load Essbase member formula into DRM using Automator

    Hi,
    I just wonder how to load Essbase member formula into a member property in DRM?
    I encounter a problem when loading a member formula which as new line in the formula.
    Here is the example of the record for Automator using | (pipe) delimiter where the formula has carriage return / new line:
    ChangeProp|Master|Accounts|CYTDSignOnBonus|ESB_Formula|[OpenInputValueBlock]
    [CYTD("Sign On Bonus")]
    [CloseInputValueBlock]
    In the above example. when the formula is loaded, it only load the 1st line and strip the remaining line.
    Thanks.

    Hello,
    I have encountered this issue as well and here is how I receommend you deal with it. Unfortunately, DRM does not understand multiple lines in a formula and so it truncates the other lines.
    1. The best way around it is to ensure that your formula does not have multiple lines. Strip all the enters and only use spaces. Essbase does not care about aesthetics as long as the formula is all in one line. This should take care of it.
    2. Sometimes, the formulas for member properties are very long and they are in multiple lines. You can try using excel formulas to bring them all in one line. After removing enters and tabs myself multiple times, I informed my Essbase developers of this DRM issue and told them to provide me with the formulas without using Enters and tabs.
    Hope this helps.
    -- Adi

  • How to load Matrix report data into basic table data using ODI

    Hi,
    How to load Matrix report data into basic table data using oracle Data Integrator ?
    Requirement Description:
    Following is the matrix report data:
    JOB                       DEPT10                DEPT20 
    ANALYST                                           6000
    CLERK                   1300                     1900 Need to convert it into below format:
    JOB                             Dept                        Salary
    ANALYST                  DEPT10     
    ANALYST                  DEPT20                     6000
    CLERK                       DEPT10                    1300
    CLERK                       DEPT20                    1900
        Thanks for your help in advance. Let me know if any further explanation is required.

    Your list seems to be a little restrictive, you can do a lot more with ODI procedures.
    If you create new procedure, and add a step. In the 'command on source' tab set you technology and schema as per your source database. Use the unpivot functionality as described in the link, please, rather than using 'SELECT *' use the appropriate column names and alias them for eg:
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    Then in your 'command on target' tab set the technology and schema to your target db, then put your INSERT statement for eg:
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    VALUES
    :job,
    :deptsal,
    :saledesc
    Therefore you are using bind variables from source to load data into target.
    Obviously if the source and target table are in the same database, then you can have it all in one statement in the 'command on target' as
    INSERT INTO job_sales
    (job,
    deptsal,
    saledesc
    SELECT job as job,
    deptsal as deptsal,
    saldesc as saledesc
    FROM pivoted_data
    UNPIVOT (
    deptsal --<-- unpivot_clause
    FOR saldesc --<-- unpivot_for_clause
    IN (d10_sal, d20_sal, d30_sal, d40_sal) --<-- unpivot_in_clause
    also set the log counter as 'Insert' on the tab where your INSERT statement is, so you know how many rows you insert into the table.
    Hope this helps.
    BUT remember that this feature only came out in Oracle 11g.

  • How do I get around certificates blocking me from a printer support web site?

    How do I get around certificates that are blocking me from a web site I am trying to get support from? I contacted the server people and they said they have no certificates to block that, would this be in Safari?

    What kind of error message do you see?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB

  • How to access .asmx Web Service using JAVA? Newbie

    Hello Experts,
    Currently, I have a project where in I have to access a ,NET web service. It is made of C#. I just want to ask how will I start the accessing process? I made this simple equation on how my project is.
    Java Project + C#.Net Web Service = Integration
    1. Do i need to create a Web Service too for the Java Project? If yes, What are the necessary tools needed for the creation of this Java Web Service?
    2. The .NET Web Service is available online. (It is made by other people).
    3. Based on the equation, what is the equivalent technology for the + sign?
    4. Can you site a concrete example for accessing a web service?
    5. I'm new here. Totally I have no idea where to start.
    6. Thank you experts.
    Edited by: Benedict.Aluan on 05 30, 08 1:38 PM
    Edited by: Benedict.Aluan on 05 30, 08 1:39 PM

    Hello
    Thanks a lot for your help ...
    I am developing simple J2EE based web service client using IBM WSAD 5.1. I have used the following code to call .asmx web service in Java
    String url = "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl";
         String namespace = "http://tempuri.org/";
         name = request.getParameter("txtName");
         try
              System.out.println("In Internet Service");
              ServiceFactory factory = ServiceFactory.newInstance();
              Service serv = factory.createService(new URL(url),new QName(namespace,"TempConvert"));
              System.out.println("Got Service......");
              Call obj = (Call)serv.createCall();
              System.out.println("Got Call......");
              obj.setProperty(Call.ENCODINGSTYLE_URI_PROPERTY,"");
              obj.setProperty(Call.OPERATION_STYLE_PROPERTY,"wrapped");
              obj.setTargetEndpointAddress(url);
              obj.setPortTypeName(new QName(namespace,"TempConvertSoap"));
              obj.setOperationName(new QName(namespace,"FahrenheitToCelsius"));
              obj.addParameter("param1",XMLType.XSD_STRING,String.class,ParameterMode.IN);
              obj.setReturnType(XMLType.XSD_STRING);
              System.out.println("Parameters Set.....");
              Object[] params = new Object[]{name};
              k = (String)obj.invoke(params);
              System.out.println("Result: "+k);
         catch(Exception e)
            System.out.println("Exception is : "+e);
        }But this code is throwing exception that
    Invalid Address "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl"I have also tried this URL with Java Proxy. But it showing the same error.
    Plz can u tell me how to access .asmx web service ?
    Waiting 4 reply.

  • How to access the Web Service Browser

    Hi,
    I need to access the Web Service Browser to generate a Web Service Description.
    How can I do it?
    I use the follow url:
    http://<host_name>:<port_number>/sap/bc/bsp/sap/WebServiceBrowser/search.html?sap-client=<relevant_client>
    but I can't say how to determine values for the three placeholders.
    Help me please.
    THANKS

    Hi Andrea,
    you can access the web services in sap transaction SICF. Then right click on the
    service and choose "test". The hostname is the host on where the sap system
    runs.
    The port ´number can be seen in transaction SMICM -> shift + F1. Here you can see
    the portnumer assigned to the HTTP protocol.
    And the client is the sap client (standard client) for which the service is configured.
    Hope this helps.
    KR,
    Andreas

  • How to use Axis to access a web service through Authentication  proxy

    Using axis access internat web service is success,but access a web service through Authentication proxy is failure.But other java classes connect through a proxy to the internet which works very well:
    please help me ,thank you!!!
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import javax.xml.namespace.QName;
    //this is my access webservice faliure   codes
    public class TestClient
       public static void main(String [] args) {
           try {
                System.getProperties().setProperty("http.proxySet", "true");
                System.getProperties().setProperty("http.proxyHost","proxy.com");
                System.getProperties().setProperty("http.proxyPort", "8080");
                System.getProperties().setProperty("http.proxyUser", "username");
                System.getProperties().setProperty("http.proxyPassword","password");
               String endpoint =
                        "http://nagoya.apache.org:5049/axis/services/echo";
               Service  service = new Service();
               Call     call    = (Call) service.createCall();
               call.setTargetEndpointAddress( new java.net.URL(endpoint) );
               call.setOperationName(new QName("http://soapinterop.org/", "echoString") );
               String ret = (String) call.invoke( new Object[] { "Hello!" } );
               System.out.println("Sent 'Hello!', got '" + ret + "'");
           } catch (Exception e) {
               System.err.println(e.toString());
       }I get an "(407)Proxy authorization required" error?

    I am also looking for a solution. Does any one know how to do through code instead of jvm settings?
    Thanks in advance!

Maybe you are looking for

  • SAP* and DDIC password is not working in Cleint 000

    Hi,     I have Installed ECC 6.0 IDES Server on Windows 2k3 with Oracle database. First time i was able to login to 000 client with SAP* (default pwd) and did some post installation steps. Now the password is not working. I tried the following: Go to

  • In Fact Sheet, Open Leads View is displaying all Leads

    Hi Gurus, I have configured Account Fact Sheet(BP_Account_FS). I have added view "Open Leads", which should "display the last n leads that have status "open" or "in process". But In my case "Open Leads" is displaying all the Leads, which have status

  • Why when I send a message my friends receive it from my email account..

    Every time I send a iMessage to somebody that person doesn't receive it from my phone number but from my email account which is annoying... How can I fix it/how can I turn it off?? Thanks

  • Windows 7 with Boot Camp issues

    Hi, I have a Macbook early 2008 model, with 10.5, which apparently has boot camp 2.0 installed on it. Despite this, I managed to install Windows 7 64-bit on it, without issue, until I tried to install all the bootcamp drivers for stuff like the track

  • Abap-dictionary

    hi experts, what is value table&check table in abap dictionary. where we use it. and what is the purpose. thank u,   cnu