Setting multiple keystores.

Hello,
Using the keytool command I'm trying to add a certificate, xyz.cer, to a keystore.
Following are the two commands that I'm executing:
keytool -genkey -alias jboss-cl -dname "CN=Client, OU=X, O=Y, L=Z, S=XY, C=YZ" -keyalg RSA -keypass changeit -storepass changeit -keystore client.keystore
keytool -import -v -trustcacerts -file xyz.cer -keystore client.keystore -keypass changeit -storepass changeit
I'm using Jboss-4.0.3SP1 web server which is clustered. There is individual certificates against each of these clusters.
Can I have one more certificate which I can bind to the same client.keystore variable?
Further I'm using this client.keystore as follows:
String strKeystoreFileName = "."+java.io.File.separator+"client.keystore";
System.setProperty("javax.net.ssl.trustStore", strKeystoreFileName);
There are two instances due to which:
1} there is no exception and the process using this code snippet executed fine.
2} there is SSHHandShakeException which is again intermittent.
Please guide me for the same. I'm not very adept in webservices and related stuff.
Your help is deeply appreciated.
Thanks,
Dan.

Finally solved it myself. For the interest of others.
With 2 calls of moveTargets, the target bi_cluster is replaced with BIP_Cluster_1 for all Library and AppDeployments.
moveTargets('bi_cluster','BIP_Cluster_1','Library')
moveTargets('bi_cluster','BIP_Cluster_1','AppDeployment')
#=======================================================================================
# moveTargets - target configBeans from oldDestination to newDestination
#=======================================================================================
def moveTargets(oldDest, newDest, cfgBean) :
  print 'Moving configBean ' + cfgBean + ' from ' + oldDest + ' to ' + newDest
  cd('/' + cfgBean)
  bag=ls(returnMap='true')
  for bean in bag:
     cd('/' + cfgBean + '/' + bean )
     workBean = cmo
     print "cfgBean " + workBean.getName() + " "
     # if oldDest is in Target of cfgBean
     if str(get('Target')).count(': Name=' + oldDest + ",")!=0:
       # unassign oldDest
       unassign(cfgBean,bean,"Target",oldDest)
       print " +- unassigned " + oldDest + " "
       # if newDest is not in Target of cfgBean
       if str(get('Target')).count(': Name=' + newDest + ",")==0:
         # assign newDest
         assign(cfgBean,bean,"Target",newDest)
         print " +- assigned " + newDest + " "

Similar Messages

  • I have an Apple ID with a single  e mail address. I want to set multiple addresses in the same ID. Can I? If so how?

    I have an Apple ID with a single  e mail address. I want to set multiple addresses in the same ID. Can I? If so how?

    Howdy there johnzcarp,
    As I understand it you want to have more than 1 email address under your Apple ID. You can have what are called Alternate Email addresses associated with your Apple ID and this article will help you get those setup:
    Manage your Apple ID primary, rescue, alternate, and notification email addresses
    Alternate email address
    You can add one or more alternate email addresses for use with Apple services such as Game Center, FaceTime, Find My Friends, iMessage, and OS X notifications.
    Go to My Apple ID (appleid.apple.com).
    Select “Manage your Apple ID” and sign in.
    Add an alternate address:
    Select Add Email Address, then enter your alternate address. Apple will send a verification email to that address. Didn't receive the email?
    Follow the instructions in the email to verify the address.
    Edit an alternate address:
    Select Edit next to the address, then enter the new address. Apple will send a verification email to that address. Didn't receive the email?
    Follow the instructions in the email to verify the address.
    Delete an alternate address: Select Delete next to the address.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • How to set multiple senders for one account

    Hi all,
    I have a BIS account with my provider and a paid gmail account which collect for me mails from different address. Is it possible to set multiple senders for this account, thus it seems that I'm replying from one of these address and not only from my google address? In fact, it's important for me also that all mails come out from the same SMTP server (google).
    Thanks in advance.
    Best regards,
    Pierluigi

    For the BlackBerry to "send using" a specific email account, it must be set up on your BIS account as an email account, otherwise, you can send from that account.
    You can do that, and then block ALL incoming emails from those accounts, and allow only incoming mail from your one Gmail account, if you desire.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to set multiple alarms on E90?

    Hi guys,
    I want to set multiple alarms on a 24 hour period of the same day, please give hints on how this can be done, on my pervious handset I was able to set alarms for multiple dates & times.
    Solved!
    Go to Solution.

    Does the E90 not have the same multiple alarm features as the N95 & N82?
    Go into the clock, then press right for alarms. Then press Options > New Alarm and set it for the correct day and time. Then repeat the process to set mutiple alarms for the same day.

  • How to set multiple values in one context-attribute

    Hi all,
    Anybody knows a possibility to set multiple Values to a context-attribute?
    I know it how to get it with the following code:
    String break[]= request.getParameterValues("break");
    Now I want to do something like:
    request.setParameterValues(break[no]);
    where no is a counter in a loop.
    With the Method setAttribute(), I overwrite the previous inserted value.
    Thanx
    Robert

    I have not explizit declared break as an array.
    It is the Context- Attribute I want to send. I thaught that I can use it as an array in the same way I can do it when I send Data from an HTML- Form (with multiple values) to an servlet.
    I don't know how to declare the Attribute explizit as an array.
    that it is you wanted to know?
    I think my main problem is to get an array from the servlet to the jsp. Is there an other possibility (other than via Context-Attributes) to do that?
    thanx
    robert

  • How to set multiple styles on a single component in flex ?

    Hi ,
    I would like to know how to set multiple styles on a single component in flex.
    Can anyone give me an example as to how to set multiple styles for a single component ?
    Thanks ,
    Regards,
    Ajantha

    Hi tuliptaurus,
    You can setStyleName property for chnaging the external css dynamically by using the setStyle() method ...
    btn.setStyle("styleName","blendButtonSkinOther");
    You can change the external css by using the styleaName property with setStyle method..the line in blue..where blendButtonSkinOther is another css class..
    blendButtonSkin {
        fontFamily: Arial;
        fontSize: 11;
        color: #F1F1F1;
        textRollOverColor: #F1F1F1;
        textSelectedColor: #F1F1F1;
        horizontal-align:center;
        width:150;
        height:30;
        cornerRadius:5;
        upSkin:ClassReference('assets.skins.BlendButtonSkin');
        downSkin:ClassReference('assets.skins.BlendButtonSkin');
        overSkin:ClassReference('assets.skins.BlendButtonSkin');
        disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
        selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
    blendButtonSkinOther {
        fontFamily: Arial;
        fontSize: 11;
        color: #F1F1F1;
        textRollOverColor: #F1F1F1;
        textSelectedColor: #F1F1F1;
        horizontal-align:center;
        width:150;
        height:30;
        cornerRadius:5;
        upSkin:ClassReference('assets.skins.BlendButtonSkin');
        downSkin:ClassReference('assets.skins.BlendButtonSkin');
        overSkin:ClassReference('assets.skins.BlendButtonSkin');
        disabledSkin:ClassReference('assets.skins.BlendButtonSkin');
        selected-up-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-down-skin: ClassReference('assets.skins.BlendButtonSkin');
        selected-over-skin: ClassReference('assets.skins.BlendButtonSkin');
    Thanks,
    Bhasker Chari

  • How to set multiple home pages, the option is gone (replaced my hard drive and had to reinstall firefox) This version seems to only offer tabs, not pages?

    My old version of Firefox had the option for me to set multiple home pages. My hard drive recently failed and had to be replaced, so I had to install the newest version of Firefox. The only option I see when I go to tools, options, general is to set the one home page. (and maybe tabs) I would like to open several of the same pages every time I open my Firefox. Does anyone know how to get this back, or which version had this feature so I can downgrade to that particular version?
    Also, I was wondering if there is a way to get the bookmarks I had on the old version back. I think they are lost forever, but if anyone knows, I would be thankful. I do still have the old hard drive, but the way it failed was actually when you tried to open any browser, the hard drive would go and blue screen, this is why the old hard drive had to be replaced. Thanks. :)

    So you mean you want to open new windows with the same page when you open Firefox?
    [[How to set the home page#w_set-more-than-one-website-as-your-home-page|Set more than one website as your home page]] should help if you want to open multiple pages when you open Firefox.
    As for recovering your bookmarks, you can try to plug that hard drive into a working computer, and then read [[Recovering important data from an old profile]] to copy your bookmarks from it. However, if it is failing you may not be able to do that.

  • How to set multiple languages to each tab in JTabbedPane?

    Hi!!!
    Am trying to set two different languages to each tab in a tabbedpane. For each language i have maintained one file with unicodes. So, If any key has an empty value in that file, the value for the same key in other language file should be displayed for the tab.so, here the actual probem occured. it was showing some boxes instead of that tab title.Please give me a solution to set different languages (using setFont()) for a tabbedpane.
    Thank you
    Mourya

    Hi!!!
    First of all .. Thanks a lot for ur valuable time and suggestions. Coming to the topic... i have used all these unicodes. Could you please tell me that would it be possible to set multiple languages to a tabbedpane at a time? (in the context of missing of keys setting other language key to that missed one).
    Thanks
    Mourya
    Edited by: sindhumourya on Oct 7, 2008 1:58 AM

  • Updating/setting multiple values in lookup field through powershell

    I'm trying to set multiple values to lookup column. I can get it to set one value but multiple values don't work
    see below
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue = New-Object Microsoft.SharePoint.SPFieldLookupValue
    $lookupvalue.LookupId = 1
    $lookupvalue.LookupId = 2
    $itemValues.Add($lookupvalue)
    $CMRSItems["Event Type"] = $itemValues
    $CMRSItems.Update()
    I was expecting the LookupID 1 and 2 to update but it doesn't. When i specify LookupId = 1 it works
    What am i doing wrong.
    Thanks in Advance

    Hi Patrick, 
    In your script above you're using the same object to set both ID's on. Setting the ID of $lookupvalue, then adding it to the lookupvaluecollection, before changing the ID value to 2, then adding that to the collection. 
    I wrote an article on setting fields using PowerShell, but it doesn't include multiple lookup values. It does contain multiple choice and taxonomy values though, which is a similar concept. It's here if you want to take a look: http://social.technet.microsoft.com/wiki/contents/articles/20831.sharepoint-a-complete-guide-to-getting-and-setting-fields-using-powershell.aspx
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • How to set multiple styles on a tree component?

    Hi. I really need help...i wanted to know hot do i set multiple styles on e tree component using actionscript2.0...i need to change color, font size and font weight...Thanks for the help in advance

    You can use treeInstanceName.setStyle("stylename",value) to set individual properties, or you can create a CSSStyleDeclaration object and incorporate each of the new style values into this one object and then apply the object to the component.

  • How to set multiple ORACLE_HOME and ORACLE_SID, on Windows

    How to set multiple ORACLE_HOME and ORACLE_SID, on Windows.
    I have 5 oracle instances. Every time if i want to start up the services , I am manually setting the environment variable (ORACLE_HOME and ORACLE_SID) and starting the services one at a time.
    Can we set multiple ORACLE_HOME and ORACLE_SID in Start->My computer-> properties-> advance-> Environment variable.
    Thanks
    Naveen

    Hi ,
    Can you please give me the link, for the doc you are referring to
    Thanks
    Naveen

  • How to set multiple operating units in before report trigger

    hi all
    can any one help me out in getting clear in how to set multiple operating units in before report trigger in oracle report.
    as we set single operating unit (mo_global.set_policy.context('S',81); as 81 is my operating unit).then who to set for multiple operating unit at run time.

    Sounds like eBusiness Suite, right? Better ask this in the appropriate forum.

  • Set multiple default properties

    Hi,
    I am trying to set multiple default values for a property (multiple,text and unrestricted)from admin tool on WLPS 3.2 with WLS 5.1.
    The problem is that only first value is persisted in the database and the rest of the values are lost when the server is restarted??? I confirmed it by crosschecking the tables.
    Any help is appreciated.
    Thanks,
    --Rajit

    Hi Rajit,
    Are you using Service Pack 2 for WLCS 3.2? There was an issue (CR044075)
    dealing with muli-valued properties that was fixed in SP 2. See the Release
    Notes for more information:
    http://e-docs.bea.com/wlcs/docs32/relnotes/relnotes.htm.
    Regards,
    Ginny
    "Rajit Gulati" <[email protected]> wrote in message
    news:3c90e355$[email protected]..
    Hi,
    I am trying to set multiple default values for a property (multiple,textand unrestricted)from admin tool on WLPS 3.2 with WLS 5.1.
    >
    The problem is that only first value is persisted in the database and therest of the values are lost when the server is restarted??? I confirmed it
    by crosschecking the tables.
    >
    Any help is appreciated.
    Thanks,
    --Rajit

  • Set multiple passwords for single PDF

    Hi All,
    Do it is possible to set multiple passwords for single PDF i.e) a single PDF can be accessed using predefined passwords. It would be great if any one could can help me .
    Thanks
    Augustine

    Thank you.
    Do you mean different IDs can be used for a single PDF and can make the PDF protected.
    Regards
    Augustine

  • Setting multiple jobs simultaneousely..........

    i want some info how to set multiple jobs simultaneously.
    i have one pgm which is taking much time in prod.
    infact that pgm updates one table and picks from that table and sends to FTP file.
    i have splitted those table updates into 4 parts , i mean i have taken 4 pgms to do this.
    am splitting the table values into 4 parts and updating from these 4 pgms.
    now i am calling the 4 pgms in background using submit.
    now can reduce the half-of the time.
    fine with this but i want to still reduce the time.
    i want to  schedule these 4 pgms simultaneously in background so that all the values will update at a time and can reduce the time

    this is what i have been doing. thank in advance
    JOBNAME = 'TEST_FLEX_1'.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
      DELANFREP              = ' '
      JOBGROUP               = ' '
        JOBNAME                = JOBNAME
       SDLSTRTDT              =  SY-DATUM
      SDLSTRTTM              = NO_TIME
      JOBCLASS               = 'C'
    IMPORTING
       JOBCOUNT               = JOBNUMBER
    EXCEPTIONS
       CANT_CREATE_JOB        = 01
       INVALID_JOB_DATA       = 02
       JOBNAME_MISSING        = 03
       OTHERS                 = 99          .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF SY-SUBRC = 0 .
    SUBMIT ZTESTPGM1 AND RETURN
                     USER SY-UNAME
                     VIA  JOB JOBNAME NUMBER JOBNUMBER
                     WITH selection-table seltab.
    SUBMIT ZTESTPGM_2 AND RETURN
                     USER SY-UNAME
                     VIA  JOB JOBNAME NUMBER JOBNUMBER
                     WITH selection-table seltab.
    SUBMIT ZTESTPGM_3 AND RETURN
                     USER SY-UNAME
                     VIA  JOB JOBNAME NUMBER JOBNUMBER
                     WITH selection-table seltab.
    SUBMIT ZTESTPGM_4 AND RETURN
                     USER SY-UNAME
                     VIA  JOB JOBNAME NUMBER JOBNUMBER
                     WITH selection-table seltab.
    ENDIF.
    CALL FUNCTION 'JOB_CLOSE'
      EXPORTING
      AT_OPMODE                         = ' '
      AT_OPMODE_PERIODIC                = ' '
      CALENDAR_ID                       = ' '
      EVENT_ID                          = ' '
      EVENT_PARAM                       = ' '
      EVENT_PERIODIC                    = ' '
        JOBCOUNT                          = JOBNUMBER
        JOBNAME                           = JOBNAME
      LASTSTRTDT                        = NO_DATE
      LASTSTRTTM                        = NO_TIME
      PRDDAYS                           = 0
      PRDHOURS                          = 0
      PRDMINS                           = 0
      PRDMONTHS                         = 0
      PRDWEEKS                          = 0
      PREDJOB_CHECKSTAT                 = ' '
      PRED_JOBCOUNT                     = ' '
      PRED_JOBNAME                      = ' '
      SDLSTRTDT                         = NO_DATE
      SDLSTRTTM                         = NO_TIME
      STARTDATE_RESTRICTION             = BTC_PROCESS_ALWAYS
       STRTIMMED                         = 'X'
      TARGETSYSTEM                      = ' '
      START_ON_WORKDAY_NOT_BEFORE       = SY-DATUM
      START_ON_WORKDAY_NR               = 0
      WORKDAY_COUNT_DIRECTION           = 0
      RECIPIENT_OBJ                     =
      TARGETSERVER                      = ' '
      DONT_RELEASE                      = ' '
      DIRECT_START                      =
    IMPORTING
       JOB_WAS_RELEASED                  = JOB_RELEASED
    CHANGING
      RET                               =
    EXCEPTIONS
      CANT_START_IMMEDIATE              = 01
       INVALID_STARTDATE                 = 01
       JOBNAME_MISSING                   = 02
       JOB_CLOSE_FAILED                  = 03
       JOB_NOSTEPS                       = 04
       JOB_NOTEX                         = 05
       LOCK_FAILED                       = 06
       OTHERS                            = 99
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

Maybe you are looking for

  • More than one Windows ACS Remote Agent

    We recently added a second Windows Remote Agent to have Windows authentication service available for our two ACS. Agent definition (CSAgent.ini) is correct but in Network Configration - Remote Agent (on each ACS web console) we see that the second Re

  • Faulty MS Word file crashes entire system

    So I do not expect a fix, I even doubt that anyone here knows how this is possibel, but I'd like to put it out there. How is it possible for a faulty MS Word file (which works fine on my Win7 system) can bring down my entire OSX system? Symptoms are

  • In CVI !!!! How to dynamic change BaudRate of RS232 Serial COM Without closing the Port !!!

    Dear all: I want to change the buadrate of serial com without closing the serial com, but it failed when I use the function "SetCommConfig(m_hCom, &Com_cfg, Com_cfg_S) " to reset the buadrate ,baudrate is no change when use GetCommConfig to read ba

  • Stripping extra white space from a string

    I am trying to strip extra spaces from a string, so it there are 2 or more spaces between a word I want to remove all but one. I am trying the following code getStringTwo().replaceAll("/\s+/is",""); but all I get is an error saying Invalid escape seq

  • IDOC Package

    Hi Guys, I have the following scenario WS->XI->IDOC but in this scenario there will be several calls from WS and we want to send an IDOC Package. I have seen some blogs regarding the collector pattern on BPM but in some of them I have seen that there