How to Build Certificate path /chain.....

Hi
Here I am using generateCertPath..... Please advice....
X509Certificate certpath = null;
CertificateFactory cf= CertificateFactory.getInstance("X.509",provBC);
CertPath certPath = cf.generateCertPath( fileinputstream, "PKCS7");
     CertPathValidator cpv = null;
try {
          cpv = CertPathValidator.getInstance("PKIX", "BC");
     } catch (NoSuchAlgorithmException nsae) {
     out.println("NoSuchAlgorithmException"+nsae);
     //TrustAnchor trustAnchors = new TrustAnchor("O=xyz,C=us", pubkey, null);
//     TrustAnchor trustAnchors = new TrustAnchor(x509certificate, null);
     X509CertSelector targetConstraints = new X509CertSelector();
PKIXBuilderParameters params = new PKIXBuilderParameters(trustAnchors, targetConstraints);
// params.setInitialPolicies(policyIds);
//Validate the certificate path using the input parameters set we have created.
try {
CertPathValidatorResult cpvResult = cpv.validate(certPath, params);
} catch (InvalidAlgorithmParameterException iape) {
     out.println("validation failed: " + iape);
} catch (CertPathValidatorException cpve) {
     out.println("validation failed: " + cpve);
     out.println("index of certificate that caused exception:" + cpve.getIndex());
It give me error....
[javac] /var/ian/pdgm/tomcat/work/Standalone/localhost/pdgm/x509mgmt/newWin_jsp.java:159: cannot resolve symbol
[javac] symbol : variable trustAnchors
[javac] location: class org.apache.jsp.newWin_jsp
[javac] PKIXBuilderParameters params = new PKIXBuilderParameters(trustAnchors, targetConstraints);
[javac] ^
[javac] Note: /var/ian/pdgm/tomcat/work/Standalone/localhost/pdgm/x509mgmt/newWin_jsp.java uses or overrides a deprecated API.
[javac] Note: Recompile with -deprecation for details.
[javac] 1 error
Best Regards,
San

Hi ,
Thanks for the reply. Even I remove the 2 comment it does not work and if I remove the 1 comment , it gives me pubkey errors. I try to initialize with PublicKey pubkey but it won't work.
If you can tell me how to initialize TrustAnchors it would be a great help. I am parsing the whole certificate in my JSP file and now I want to build the certificate path. Hope u have seen the code in my previous posting.
The code gives me an exception as TrustAnchors not initialized. Please help..
Warm Regards,.
San
1 .//TrustAnchor trustAnchors = new TrustAnchor("O=xyz,C=us", pubkey, null);
2. // TrustAnchor trustAnchors = new TrustAnchor(x509certificate, null);

Similar Messages

  • How to build the "Path Prefix" HTTP Adapter at run time

    Hi All,
    I have a scenario wherein I have to call the HTTP Url of a thiird party system from R/3 via PI.
    The third party url looks liike this:
    http://gis/ias/cgi-bin/siscgi.exe?request=batch&command=<requests><request><name>sis_neighbouring_knos_for_sambandh_service</name><buffer>20</buffer><same_premise_kno>123</same_premise_kno><l
    eft_kno>331</left_kno><gis_id>4019589</gis_id><priority>same_premise_kno,left_kno,right_kno,gis_id</priority></request></requests>&user_name=sambandh.sias&pa
    ssword=sambandhsias
    I have successfully created a HTTP Recevier comm channel and provided the following in the "Path Prefix"
    /ias/cgi-bin/siscgi.exe?request=batch&command=<requests><request><name>sis_neighbouring_knos_for_sambandh_service</name><buffer>20</buffer><same_premise_kno>123</same_premise_kno><l
    eft_kno>331</left_kno><gis_id>4019589</gis_id><priority>same_premise_kno,left_kno,right_kno,gis_id</priority></request></requests>&user_name=sambandh.sias&pa
    ssword=sambandhsias
    But If I need to pass the values inside the xml tags specified above e.g. "name" at run time, How do I do that?
    I have explored the "Apply URL Parameters" option in the HTTP Comm channel but it has fixed names for the HTTP URL parameter.
    Please let me know how is this possible hopefully without a UDF
    thanks,
    Piyush

    Hi Piyush,
    Have you checked the option of ASMA of the adapter?
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    Also see Note 1101338 - Dynamic configuration of HTTP adapter
    Regards
    Suraj

  • How to build a form chain?

    Hello,
    I want to create a form wizard with 4 forms.
    On the first form I have divisions in a select list. I will pass the choosen list to the second form.
    On the second form is another select list with locations (WHERE divisions=choosen division).
    After that, the form should pass the id of the location to a form with a select list with departments (WHERE department=choosen location).
    After that, the form should pass the id of the department to the final form with a few another columns
    Could someone give me food for thought?
    sorry, I'm just a rookie
    thank you
    schulle
    Message was edited by:
    schulle

    Hello,
    Did you check the “Wizard” option of the create page wizard?
    In any case, you should remember that when you are submitting a page, all item values of this page are saved on session state, and are accessible to all the other application pages. That means that you can submit and branch from the first page to the second one, and so on, and all the information from previous submitted pages will be available to you in the current page. Using this technique can also allow you to create a “back” button to previous pages, and retain the user input on them.
    Regards,
    Arie.

  • How to schedule the process chain fr the report

    hai experts,
    i have a query which i need to generate for every five hours? i know that we can generate the report thr process chain but i dont know how to build that..
    my question is how to schedule the report,how to build the process chain,....
    can any one plz tell me how to start this generating report for every five hours
    thanks in advance..points will be alloted surely ,i need this urgently..
    Suri

    First of all you need to Identify the InfoObjects if you want to take up Master Data Loads, and if you want take up transaction loads then select the Data Targets to which the data has to be updated. Then plan the dataflow accordingly.
    You want to create a Process Chain, Go to RSPC, and then select the create option and from the Process categories available on the left handside drag and drop the Start process, then define the Variant for the same. In the same way you need to identify the other Process Types available on the lefthand side. For Eg: Start Process>Load to ODS>Activation of ODS Data>Delete Indexes for the InfoCube>Load to InfoCube>Create Indexes>Delete Overlapping Req-->Agg. Rollup.
    This is how you need to specify the dataflow, several other Process Types also included based on the requirement For Eg: Sending Mail Alerts when the Job is Success or Terminated.
    Also, have a look at this links to make urself clear about the steps in creating Process Chain.
    http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/using%20process%20chains%20in%20sap%20business%20information%20warehouse
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    Hope it helps.
    Regards,
    Archna

  • How to get a server chain certificate

    Hi all,
    I'm installing SSL on Bea Logic server 6.0, but i dont know how to get a server
    chain certificate.
    Does any body know how to get this certificate?
    Also, I read in the e-docs site that we can use utility der2pem and vice versa
    to convert between them, but i odnt know where to get the tools.(It's not in the
    utils.jar)
    thanks for any answer.
    Uy

    Hi all,
    I'm installing SSL on Bea Logic server 6.0, but i dont know how to get a server
    chain certificate.
    Does any body know how to get this certificate?
    Also, I read in the e-docs site that we can use utility der2pem and vice versa
    to convert between them, but i odnt know where to get the tools.(It's not in the
    utils.jar)
    thanks for any answer.
    Uy

  • How to build a tuxedo client execute file with C++Builder?

    Hi,all.
    I can add include file with #include.Add include path and lib path to project option.Add
    libengine.lib,libfml.lib,libfml32.lib,libtux.lib to project file.I can build the
    project without error.And communicate with the local tuxedo server successfully.But
    I've failed to communicate with a remote tuxedo server.For I know that use buildclient
    -w to build a C windows client file.How to build a GUI client project with C++builder?
    Thanks.
    david

    David,
    For a /WS client, you need a different set of libraries than those you have listed.
    To see which, run buildclient -w -v
    Regards,
    Peter.
    david wrote:
    Hi,all.
    I can add include file with #include.Add include path and lib path to project option.Add
    libengine.lib,libfml.lib,libfml32.lib,libtux.lib to project file.I can build the
    project without error.And communicate with the local tuxedo server successfully.But
    I've failed to communicate with a remote tuxedo server.For I know that use buildclient
    -w to build a C windows client file.How to build a GUI client project with C++builder?
    Thanks.
    david

  • How to build an installer including the vision Acquisition Software

    hi all, my question is "how to build an installer including the Vision Acquisition Software".
    is it enough to select "2010 Run-Time Engine" "Vision Run-Time Engine" and "NI-IMAQdx"? Its ok with the "2010 Run-Time Engine" but there is some problem with the other two.
    can some one help thanks a lot!

    hi again, i have some problem with install Vision Run-Time Engine
    must i install RTE with the Serial Number, or i can chose the "install this product for evaluation" to continue the installing, maybe active it later. But after i chosed "install this product for evaluation" and finish the installing, i still cant find RTE from my disk.
    i cant even chose my path to install the RTE. Can u plz tell me what is wrong with that?

  • How to build a Oracle style Web site

    Dear All,
    (Not sure whether this question should be this sub-site or not.)
    My question is how to build a Oracle style Web site, what technology should be use.
    Example Site: [http://www.orapub.net/ebs/index.htm|http://www.orapub.net/ebs/index.htm]
    This web site style is like Oracle Enterprise Manager.
    Thanks a lot
    Pan

    You can use Oracle Webcenter or just Oracle ADF to build a Oracle Enterprise Manager kind of Website.
    See details here -
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ria_application/developriaapplication_long.htm
    http://www.youtube.com/watch?v=iE2zTNhlvy8

  • How to build a report in web Intelligence using Store procedure under Microsoft SQL Server 2000

    Post Author: ltkin
    CA Forum: WebIntelligence Reporting
    Hi,
    How to build a report in web Intelligence using Store procedure under Microsoft SQL Server 2000 ?
    Regards,

    Hi ltkin,
    Unfortunately, it is not possible in Xir2 to create Webi reports from stored procedures.
    Webi reports can only be created from Universe. So in Business Objects XIR3 we can create a special universe that enables Web Intelligence user's to access stored procedures residing in the database. This is the only way that Web Intelligence user's can access stored procedures.
    Please let me know if the above information helps.
    Regards,
    Pavan

  • How do you combine paths?

    Hi all.
    I had to break a closed path apart, delete a section, and re-do it.  Unfortunately Illustrator has a penchant for deselecting the path you're working on with the pen tool and starting a new one from time to time, so now I have three paths instead of one.  But they all have common end points, ready to join.
    I've searched the doc, the forums, and the Web, but haven't found how to join these paths into one.  Not a compound path that remains separable (which is what "Pathfinder" creates), but rather one path as if I'd drawn it continuously.
    What to do?
    Thanks!

    I am begining to be curious to see what kind of artwork you are drawing just to get a better understanding why joining is not working for you.
    If the main source of the problem is that the pen does not continue to draw but wants to draw a new path there might be some settings that could be adjusted so it would better suit you. Are you using a Wacom maybe?
    Anyway, take a period where you closely watch the pen icon while you are drawing. If the pen discontinues there will appear an x just beside the icon. You can then move the pen to where it left off and a slash will appear at the icon to let you know you can continue.
    Under usual conditions the pen only stops drawing the path if you hold down the Cmd key and click on a white area. If that is not the case something else is wrong.
    A key can be assigned to a scripts via the Action Panel. Make a new Action. Stop recording and from the fly-out menu: Insert a Menu Item... etc.

  • I have just started to use Muse for our design agency and learning how to build ourselves a new site, I have manged to create a basic lightbox which contains sliding images, what I need to do now is have a pop up window which goes into detail about the pr

    I have just started to use Muse for our design agency and learning how to build ourselves a new site, I have managed to create a basic lightbox which contains sliding images, what I need to do now is have a pop up window which goes into detail about the projects, what I would like is a piece of text  or icon that when you roll over it and then click a separate window pops up with additional information in, once finished reading the info you can then click to close the box, any advice on how to do this?

    The best way to do what you're asking is with the Composition widget. Start with the Tooltip preset, which, by default shows the info on rollover. You can change the option to show on click, which is what you're after. You can also add the close button or have the info disappear on rollout.
    David

  • How to build the  FM data I_header and I_orgdata

    hi all,
    I’m working on the conversion program for AVL using the following function modules
    BBP_PD_AVL_GETLIST
    BBP_PD_AVL_CREATE
    BBP_PD_AVL_UPDATE
    BBP_PD_AVL_SAVE
    In the function module BBP_PD_AVL_CREATE , how to build the FM data  I_HEADER and I_ORGDATA.
    I'm giving 3 input in Export parameter in BBP_PD_AVL_GETLIST  and E_pdlist should contain data .
    but e_pdlist is not getting data...any suggestion..
    after execution it was showing  "Buffer table is not up to date"
    with regards,
    P.lokesh

    Hi Lokesh,
    We are also encountering same problem.
    How did you solve your problem?
    Would really appreciate your help.
    Thanks,
    Kezia

  • How to build a search engine in the database?

    Hi there,
    say I have 3 tables:
    1. Table_empl: idEmpl, fname, lname, dob...
    2. table_department: idDpartment, idEmpl, departmentName, section...
    3. table_fligths: idFlight, idEmapl, departure date, destination, carrier...I would like to provide the end-user a text box (in my GUI) where he can write whatever he would like to get info about. If, for example, he'll write: british-airways, I expect the system to search everything in the db that matches this input.
    Question: How can I design such a search engine that retrieve information from every possible table in the db with reference to every column.
    thanks for any pointers

    thanks darted for your reply. so what do you recommend? should i give the end user all names of tables and columns and ask him to choose from the list and than build a query based on that?
    this is optional but i'd rather have one exec button and to return all possible results from the db. if (in the example i provided) it found 'british airways' in the carrier - than that a result. if it founds 'british' in the lname of table_emple - that's another result. so the output should be something like:
    found 2 matches:
    1. british airways, 10/10/2006, LHR
    2. British, John, 12/01/63,
    any idea how to build that?

  • How to build a query based on(UNION) 3 vendor InfoObject

    Dear Experts:
    I have a requirement to build one query based on 3 vendor InfoObjct: 0VENDOR + 0VEN_COMPC + 0VEN_PURORG.
    I tried to build a multiprovider upon these 3 infoobjects, but when I Identify(Assign) the key for each InfoObject, supposely there should be 3 InfoObject for me to check (0VENDOR, 0VEN_COMPC and 0VEN_PURORG) so that I can UNION these 3 infoobjects together on vendor number. But since the reference infoobject of these 3 vendor master data is different, I can not check the 3 together.
    Can anybody let me know how to build that query? I only need vendor number show once, and the attributes of 0VEN_COMPC and 0VEN_PURORG can be union to 0vENDOR.
    Any post would be appreciated and thank you all in advance!
    Best Regards!
    Tim

    Hi,
    you can create a link between the vendor objects itself, means link 0vendor with 0ven_compc and 0ven_purorg. This should give you a list of all vendors multiplied with the comp codes multiplied with the purch. org. May be here it is possible to create another link between a attribute (eg. comp_code of 0ven_purorg with comp_code of 0ven_compc). In case it is not possible you need to add this link information somehow. Another option might be to create 2 queries. One on a infoset of 0vendor and 0ven_purorg and another one on 0vendor and 0ven_compc.
    regards
    Siggi

  • How to find out logs related to which server, If i have 2 WFE's in the farm. How to configure logs path?

    Hi,
    I got this doubt, when searching logs on the servers. I have 2 WFE's in my farm, I got an error from enduser. So in which WFE server i need to check the logs.
    How to configure logs path. Is it is possible to specify logs path on our own instead of 14 hive folder.
    Badri

    That is a really bad idea, especially with idle disconnects and other unreliability of CIFS.
    You should instead check out the command
    Merge-SPLogFiles which will allow you to combine ULS logs from multiple servers into a single file.
    You can certainly specify your own path, but the path must be available on all servers. For example, if you specified D:\Logs, D:\Logs must exist on all SharePoint servers within the farm.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Maybe you are looking for

  • Power Redundancy problem for cisco 3750 stack switches

    Hi Team, I have installed and configured cisco 3750X series switches in stackwise. Those are having dual power supply. Power redundancy test performed: 1. Removed one of the power supply and inserted it back. 2. once the first power supply is ready,

  • Strange Timer

    Strange timer do appeared on the screen of my BlackBerry(8520),run clockwise for so many minutes before it will stop after it must have drained the battery completely. Please,what can I do to get this problem solved?. Kindly help as I am feed-up. Tha

  • ColorFX hard crashing Color after 1.0.1 update

    I'm not sure if this is a Decklink issue, or if it's a Color issue, but in any case, since upgrading to 1.0.1, Every time I add a ColorFX node to one of my projects, Color will hard crash instantly. Desktop Video Out has been disabled in my Decklink

  • Report Export option on the top

    Hi In Oracle Apex reports, Can we have Report Export option on top and bottom simultaneously? Thanks,

  • Replacing Image Links at 100% - CS3

    The 'Relink Preserves Dimensions' preference is confusing and doesn't seem to work as stated in the Help topic. I want to replace an image in a frame that has been scaled. But I need for the new image to come in at 100%- not at the enlargement/reduct