Password file for MQ - Encrypted

Hi,
I wish to use a passwordfile for my implementation of Java MQ, but do not want to have it stored in plain text.I use imqcmd as part of my deployment process and do no want to be prompted for passwords as it is automated.
Is there any way in which to encrypt the password file for imqcmd commands?
Thanks,
Anthonie

The source code for IMQ and J233 is available to download.
You can then customize the code to do whatever you want (i.e. read in a password in some encrypted format using an algorithm of your choice and then unencrypting it before passing it on).
You can easily do this for the KEYSTORE / TRUSTSTORE password files by writing your own Java security provider.
Here are the steps for that:
*1. Write a custom java security provider.*
public class YOUR_PROVIDER_Provider extends java.security.Provider
your code here ...
public class YOUR_PROVIDER_Provider extends Provider
public YOUR_PROVIDER_Provider()
super("YOUR_PROVIDER_Provider", 1.0, "A Custom Security provider");
String className = YOUR_PROVIDER_Provider.class.getName();
put("KeyStore.JKS", className);
2. then,
Need an entry in the java.security file like this:
security.provider.1=YOUR_PROVIDER_Provider
The above order MUST be 1 in order to override the Sun default security provider
* @see java.security java.security file located in: {$JRE_HOME}\lib\security\
*3. write your own JavaKeyStore* (you can download Sun's java source code to use as a baseline.
I would recommend using this one:
sun.security.provider.JavaKeyStore
If you change the package name to a custom one, you will need this (due to "package protect" accessor of this class)
sun.security.provider.KeyProtector
In this class:
sun.security.provider.JavaKeyStore
Modify these methods:
public Key engineGetKey(String alias, char[] password)
throws NoSuchAlgorithmException, UnrecoverableKeyException{
// ... your code
public void engineSetKeyEntry(String alias, Key key, char[] password,
Certificate[] chain)
throws KeyStoreException{
// ... your code
public void engineStore(OutputStream stream, char[] password)
throws IOException, NoSuchAlgorithmException, CertificateException
// ... your code
public void engineLoad(InputStream stream, char[] password)
throws IOException, NoSuchAlgorithmException, CertificateException
// ... your code
4. put your custom files inside a .jar file and put this in the java classpath AHEAD of the standard java ones:
e.g.
java -Xbootclasspath/p:YOUR_JAR.jar
you will have to do this inside the IMQ startup script
alternatively you can simply edit the imqbrokerd.conf file to something like this:
ARGS=-vmargs -Xbootclasspath/p:YOUR_JAR.jar:
this file is in: IMQ_HOME/etc/mq/

Similar Messages

  • How to create a password file for executing psadmin command to deploy portl

    how to create a password file for executing psadmin command to deploy portlet

    What you have done is perfectly right. The password file doesn't have anything else apart from the password
    for example in your case
    $echo password > /tmp/password.txt
    However I remember that in windows install, the Application server used to wait for a user's input when a deploy was to be done for the first time. So Can you read the Release notes or the Readme file which has come with windows.
    The solution was,
    manually use asadmin command of application server to deploy some war (any webapp will do), at this time, a question will be prompted to accept a certificate. once this is done, deploy portlet should work fine!!!
    HTH

  • How do I move data files from old iPhone? Specifically, the password files for the App mSecure from my old iPhone 3Gs to iPhone 4S?

    How do I move data files for mSecure (a password saver app) from old iPhone 3GS to new iPhone 4S?

    That article is about using your iPod as an external hard drive, to move files from one computer to another computer.  It is not related to your question.
    You can't use iTunes to move song files from iPod to computer, except for songs you purchased from the iTunes Store (and you can also re-download purchases).  However, there are third-party methods and utilities that can move song files from iPod to computer.  If you do a Google search on something like "ipod transfer," you should get some links.
    Once the song files are on your current computer, add them to that computer's iTunes library by dragging the files (or folder containing the files) to the iTunes window.  After confirming everything is there (and fixing the data issue you mentioned) you can sync the iPod.  You may want to do a Restore on the iPod, if it might have a data corruption issue, which will erase the iPod's hard drive, re-install the latest software, and set it to defautl settings.

  • How to create a password file for 9i database

    I just created a database 9.2.0.5 based on another database. I copied the password file to the new database. I got an error. How can I recreate one?
    Thanks a lot!
    SQL> startup;
    ORACLE instance started.
    Total System Global Area 337204540 bytes
    Fixed Size 455996 bytes
    Variable Size 268435456 bytes
    Database Buffers 67108864 bytes
    Redo Buffers 1204224 bytes
    ORA-01991: invalid password file '/local/ORACLE/OraHome1/dbs/orapwilnktest'
    SQL>

    Do you think the password is the sys password?Time to go through the doc :
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/dba.htm#1227
    Nicolas.

  • File format for username/password file for -vcusersfile command line option

    In what format do I specify username and password in a file that I can use for
    the -vcusersfile command line option?

    The text file should contain name/password pairs separated by an equal sign. Example:
    myname1=password1
    myname2=password2
    Hope that helps,
    Susan Doan

  • Error opening password file

    Hi, I'm traying to start up a database in sqlplus on SuSE 8.2 and Ora9.2, I have the next error:
    SQL> conn / as sysdba
    Connected to an idle instance.
    SQL> startup pfile=/opt/ora9/admin/pavilion/pfile/initmydb.ora
    ORACLE instance started.
    Total System Global Area 101781824 bytes
    Fixed Size 450880 bytes
    Variable Size 83886080 bytes
    Database Buffers 16777216 bytes
    Redo Buffers 667648 bytes
    ORA-01990: error opening password file '/opt/ora9/product/9.2/dbs/orapw'
    ORA-27037: unable to obtain file status
    Linux Error: 2: No such file or directory
    Additional information: 3
    My password file is /opt/ora9/product/9.2/dbs/orapwmydb
    How can I use my orapwmydb file?

    Hi Marco,
    as far as I know, you have to use the REMOTE_LOGIN_PASSWORDFILE = SHARED option in your init...ora file.
    In this case you have one password file for one or more databases. It can only have the entries for SYS and INTERAL.
    I'm sorry to cannot answer your question of having different password files for different databases %-)
    Klaus

  • Question about Password file

    Good afternoon,
    In the 2 Day DBA document it states:
    >
    When you invoke DBCA as part of the Oracle Database installation process, DBCA
    creates a password file with one entry: the SYS user.
    >
    I created the database using DBCA and, it must have created a password file for me since I am able to log in remotely to the database.
    The question is: I cannot locate the password file DBCA created, I don't know what its name is. Can someone provide me with the name DBCA uses for the password file ?
    Thank you very much for helping,
    John.

    Hello SB,
    >
    post proof
    >
    I don't know if this qualifies as "proof" but... from the 2 Day DBA document distributed by Oracle, page 6-9:
    >
    When you invoke DBCA as part of the Oracle Database installation process, DBCA
    creates a password file with one entry: the SYS user. Granting SYSDBA to a user adds
    that user to the password file automatically.
    >
    I have no reason to doubt that statement. ;)
    >
    for some/many/most Oracle versions which you decided we did not need to know yours the file resides in
    $ORACLE_HOME/dbs
    >
    I didn't decide you didn't need to know. I forgot to mention I am using Windows. As far as the Oracle version, since I used to constantly forget, I made the version part of my user name 11gR2, I can see how that can be easily overlooked.
    Thank you for your help,
    John.

  • Problem setting up user ids to use the Oracle password file.

    I want to set up my database users so that a password file is used for connecting to the database.  I have completed these steps successfully.
      BTW - DB is 11.2.0.3 on AIX power 64
    1.  Created the password file for the database using the orapwd command.  Allowing 20 entries.  Confirmed the file was created in the $ORACLE_HOME/dbs directory
    2.  Created a database user, sbrower
    CREATE USER SBROWER IDENTIFIED BY <password> DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK ;
    GRANT DBA TO SBROWER;
    ALTER USER SBROWER DEFAULT ROLE ALL;
    GRANT UNLIMITED TABLESPACE TO SBROWER;
    ALTER USER SBROWER QUOTA UNLIMITED ON USERS;
    3.  Connected to the database as SYS and granted sysoper to SBROWER
    4.  Using putty, ssh'ed into the server where the database resides.
    5.  Set the oracle variables (ORACLE_HOME, ORACLE_BASE, etc.) and PATH
    6.  Was able to connect to the database using sqlplus / as syoper
    THE PROBLEM
      For another user, EA_RDX_ORACLE1, I follow the same steps (2-6) bu when I execute step 6, it does not allow the connection
    ERROR:
    ORA-01031: insufficient privileges
       but, if I use sqlplus ea_rdx_oracle1/thepassword as sysoper it works
    Looking at v$pwfile_users on the database:
    USERNAME SYSDBA   SYSOPER      SYSASM
    SYS      TRUE      TRUE      FALSE
    SBROWER  FALSE     TRUE      FALSE
    EA_RDX_ORACLE1 FALSE TRUE FALSE
    3 rows selected.
    There is one thing that is different for the ea_rdx_oracle1 id's:
    - The users who use this id, use a took called CyberVault to check out the id.  The password for the id changes each time the id is checked out; however, the way the id is set up on the DB servers, us user does not have to enter the password when they log in (ssh).
    I have sent an email to our unix admin asking his how the id was set up so that it can ssh into the server.  It is not included in the list of users in any group in the /etc/ogroup file and it is not included in the /etc/opassword file.

    The OS authentication ( sqlplus / as sysdba ) does not require the password file.
    The problem may be related to the OS user you are connecting to that server - it is not a member of OSDBA group ( usually DBA ).

  • How to know whether the current database is using a password file or not?

    How to know whether the current database is using a password file or not?

    The remote_password_file is the parameter that determines if you can use or not a password file. The values this parameter can have are NONE, SHARED, EXCLUSIVE. It is pretty obvious, if it is set to either SHARED or EXCLUSIVE the oracle instance has enabled the access through a password file for the SYSDBA and SYSOPER roles.
    ~ Madrid

  • Configuration assistant error OPW-000001 cannot open password file

    Installing on RH9. The install gives a fail message on the configuration assistant portion. When I run dbca from the command line I get the error
    OPW-000001 cannot open password file
    The password file for the new database exists with the the permissions, owner and group:
    -rwSr----- oracle oinstall filename (highlighted in red)
    I have tried running dbca as root and oracle but get the same error.

    Does the user have appropriate operating system privileges?

  • Dataguard  Password file

    Oracle 10g Release 2 Enterprise Edition
    Oracle Enterprise Linux
    I am creating a dataguard configuration on my laptop. Both Primary and Standby are on the same Oracle Home. I actually managed to create a standby database using RMAN Duplicate Target Database for Standby. But archivelogs are not being transmitted from Primary to Physical Standby.
    I referred many documents in which they say both Primary and Physical standby should use Password file.
    I am able to connect to primary using " sqlplus sys@PRIMARY as sysdba ". And when queried v$pwfile_users it shows SYS as the lone row.
    But when I try to connect to STANDBY using "sqlplus sys@STANDBY as sysdba" It gives ORA -1031 Insufficient Privileges error.
    When queried v$pwfile_users there are no rows.
    I have created two different password files for both Primary and Standby. And the REMOTE_LOGIN_PASSWORDFILE is set to EXCLUSIVE.
    How come SYS is not shown in v$pwfile_users in STANDBY database and how to add it ?
    I tried to open the standby database but it gives errors showing system datafile needs recovery.

    shutdown immediate
    startup nomount
    alter database mount standby database;
    alter database recover automatic standby database;

  • OPW-00001 :Unable to open password file

    I have newly installed oracle11gr2 in my PC, and im creating a database manually by below steps.
    Step 1: Create suitable directory for new database.
    like below
    C:\oraclexe\app\oracle\admin\XETEST
    adump
    dpdump
    pfile
    C:\oraclexe\app\oracle\oradata\XETEST
    Step 2: Create new instance for new database
    C:\Windows\system32>oradim -new -sid xetest
    Instance created.
    Step 3 : Create password file for new database
    C:\Windows\system32>orapwd file=C:\oraclexe\app\oracle\
    And in step 3,
    i get the following error..
    C:\Windows\System32>orapwd file=C:\oraclexe\app\oracle
    Enter password for SYS:
    OPW-00001: Unable to open password-file
    Kindly help me to resolve this.
    Thanks in Advance!
    Anitha

    920049 wrote:
    I have newly installed oracle11gr2 in my PC, and im creating a database manually by below steps.
    Step 1: Create suitable directory for new database.
    like below
    C:\oraclexe\app\oracle\admin\XETEST
    adump
    dpdump
    pfile
    C:\oraclexe\app\oracle\oradata\XETEST
    Step 2: Create new instance for new database
    C:\Windows\system32>oradim -new -sid xetest
    Instance created.
    Step 3 : Create password file for new database
    C:\Windows\system32>orapwd file=C:\oraclexe\app\oracle\
    And in step 3,
    i get the following error..
    C:\Windows\System32>orapwd file=C:\oraclexe\app\oracle
    Enter password for SYS:
    OPW-00001: Unable to open password-file
    Kindly help me to resolve this.
    Thanks in Advance!
    AnithaI'll make couple of off the cuff observations in no particular order.
    1) ORACLE XE only allows a single instance per system.
    I suspect that you are attempting manual DB creation since dbca is NOT provided with XE.
    why do you not use dbca to make the new DB?
    2) typically the password file resides in $ORACLE_HOME\dbs
    3) Oracle password file is NOT required to exist.
    4) does OS user invoking orapwd has necessary OS permissions to actually create the file?

  • Password file users issue... RAC help please...

    Hi guys,
    i have a two node rac database installed on my laptop.. 11gr2.
    in rac a database will be accessed by more than once instance correct....
    here i have two instance myinst1 and myinst2.
    here if we add a user in any one of the instances (say myinst1).. using that user account. the user can connect to either the myinst1 and myinst2.... correct....
    say now i grant the user i just created with the SYSDBA and SYSOPER privileges.. (user created on myinst1).
    now i can connect to both of the instance using the following syntax as a sysdba..
    connect user/password@servicename as sysdba
    now here comes the best part..
    oracle states that once the user is given either the sysdba or sysoper it will be updated in the password file...
    now as i have created the user in the myinst1 instance and granted the privileges there... the password file at the node myinst1 shows the details of the user in the V$PWFILE_USERS views. where as the other instance myinst2 V$PWFILE_USERS does nt have the user...
    can any one tell me why is this happening... do i have to explictly grant the SYSDBA privilege on all the instances once if i want to grant a user with the sysdba or sysoper privilege...

    Surely there is more than this? I have always believed that the only valid configuration of a Password File in RAC is for a single file to be shared by all instances - by putting it on a shared file system or multipathed raw volume (like the database files), with a Unix symbolic link or init.ora SPFILE reference on each node. I have seen documentation that people have stored a database password file in ASM (SPFILE=+XYZ...) and even on NFS and CIFS.
    SYSDBA and SYSOPER access uses the password file of course and it is effectively part of the database, and to me it seems reasonable to expect that an instance will only update the one Password File it knows aboutwhen SYSDBA/OPER access is added, removed or changed; so the consequences of having multiple copies for a single database may be expected to be bad. It was noted here that granting SYSDBA privilege on one node leads to inconsistency in that account's privileges across nodes. Maybe worse is that removing SYSDBA access from one node could leave SYSDBA access to other nodes/instances in place, in clusters where there are multiple local password files... this can be viewed as a very serious security defect, which one of our DBAs has demonstrated.
    Now I have learned that Oracle's documentation does not actually give much advice about the configuration of Password Files for RAC; that while some people have done what I expected for years, some product guides suggest on the contrary that local copies should be created on each node; and even that Oracle may not support a single Password File on a shared device. Having Googled the web and scanned this forum quickly, I haven't found a resolution. I am stunned.
    I am sure that, of all people, the RAC SIG will be able to advise on this authoritatively, so please do so. If it turns out that Oracle does not recommend or support the use of a single shared file (*),then I suggest there is a significant issue.
    (*) Just to be clear, I am not refering to a SHARED password file, but to an EXCLUSIVE one that is on a shared storage volume accessed by every instance of the same RAC database. How Oracle behaves with a SHARED parameter setting may be another issue.

  • How do I retrieve a forgotten password for my encrypted backup?

    Ive set a password for my backups on iTunes 10.2.2. and I have forgotten it! There is no "Forgot your password" button anywhere!! How do I get past this crap???!!!

    I'm sorry you forgot your password, and have to recreate a backup of your phone.
    But encrypted files, and passwords are your responsibility to save.
    Hammeredd wrote:
    What idiot came up with a password system which has no failsafe?
    There are plenty of systems that do not have failsafe for lost passwords.
    My Visa and bank cards do not have a "failsafe" pin number.
    Encrypted folders, disk images e.t.c do not have failsafe passwords.
    What the encrypted back up does is encrypt your data using a key (the "password") that you supply.
    In order to have a "fail safe" as you put it, the key would have to be saved somewhere else.
    This then it would have to be stored on your computer.
    But would you need it also protected? Yes, otherwise it is a useless password.
    They could put it in your keychain, which has a password to protect it.
    But what if you forget keychain password?
    Where should Apple put a failsafe copy of your keychain password?
    How about in another encrypted file, with a password.... what if you forget that password?
    This could go on forever.
    ...every other system we use has a facility to either email your password to you or have you answer a number of security questions to change it.
    Are you suggesting that Apple store all encrypted file passwords on their servers?
    I am sure then there would be an uproar over Apple being "Big Brother".
    no security system is worth losing all your information, this must be a mistake.
    No mistake. This is normal practice.
    There is also an option to delete your iPhone if the wrong passcode is put in 10 times.
    I have that.
    If someone tries to get into my phone I would rather have all the data deleted.
    But then I back up data, and save passwords.
    THERE MUST BE A WAY OF RECOVERING THIS BACKUP INFORMATION!!!!
    There is not. The data is encrypted.
    That's the point, no one can get it; unless they apply and very complicated decryption system and spend a lot of time on it (like the CIA)
    otherwise my intention to buy my partner an iphone has just bit the dust. And this one will be going as well.
    So because you made a mistake in not reading, and not saving your password?
    There is a clear warning when you choose to encrypt your backup.
    This really is a case of you not taking responsibility for your own mistake.
    You made a mistake.
    Now step up and accept it; and don't make it again.
    What you can do in future is create a "note" in your keychain and save your passwords there if you are prone to losing passwords.

  • Formatting the encrypted hard drive or intalling OS again with PXE boot can change TPM owner password file?

    Hello,
    1) I realized that when MBAM bitlocker encryption start both Recovery key and TPM owner password file are send to MBAM server. If we change the computername of the notebook, we can find out Recovery key from MBAM server with the KeyID as we can read it from
    computer screen, but we can not find out TPM owner password file with the existing new computername information from MBAM server, so we have to know old names of all computers but it is impossible. So we have to do decryption and clearing TPM than we
    can again encrypted it with its new name. is it right?
    2) We will going to deploy mbam encryption to our notebooks. But sometimes when a person quit the job his notebook can given to another person or new employee and based to our procedure when a notebook will given to another user it should installed
    OS again with PXE boot. I would to know will it be enough to installing with this method again with a diffrent computer name or should I firstly clear its TPM than install OS with PXE to keep TPM owner password file missing as item 1?
    I hope i can explain what i mean :)
    Regards,
    SibelM

    I would suggest you to first decrypt the laptop and then follow the process:-
    - Clear the TPM
    - Encrypt the type.
    - Check for the encryption behavior.
    Cause I have found on some model that if the OS drive is encrypted, PXE boot fail on that machine even though I also did a direct PXE on an encrypted machine with clearing the TPM.
    TPM ownership password is a hash file that gets generated with a set of algorithm. SO each time when you PXE boot, by clearing the TPM, the TPM hash password for the TPM will change. This has been done for security measures.  
    Gaurav Ranjan

Maybe you are looking for

  • Mini does not appear on desktop or in Itunes

    This problem happened suddenly. I plug in my mini, as usual, and no icon appears either on the desktop or in Itunes. I have tried four of the five Rs (can't restore without mini showing up in itunes), and have searched the discussions for some soluti

  • IPhone events don't sync to iCal

    Problem Summary: Events created on my iPhone do not sync over to my iCal on my computer. Tech Specs: * iPhone 4S, running iOS 6.1.3 * MacBook Pro, running OS X 10.6.8 * Sync via cable directly onto mac (not wifi, not iCloud) Potentially Useful Observ

  • Regarding upgrade from SAP R/3 4.7 to ECC6.0

    My company is thinking of upgrade SAP R/3 4.7 to ECC6.0. Anyone suggest anything which i have to rememeber in my mind while doing that in FI/CO config with respect to functional side. Thanks in advance...

  • Has anyone got the QT stand alone installer to work?

    OK, Has anyone got the QT stand alone installer to work that has a problem getting IT6 to work also? You can look at my original thread and see what I've been through: http://discussions.apple.com/thread.jspa?threadID=262511&tstart=0 and now am stuck

  • I'm having problems activating dreamweaver on new pc using original activation code

    I have a copy of StudioMX 2004 and was having problems activating Dreamweaver on my new pc using the original code. It says there is a network error but there isn't. When I try to activate by phone the number they give is for Lloyds bank insurance. I