Sunday, June 30, 2013

OFM 10.5.6: Java Code to export the certificates from JKS

OFM 10.5.6: Java Code to export the certificates from JKS


package mindtelligent.custom.jks;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.OutputStreamWriter;
import java.io.Writer;
import java.nio.charset.Charset;
import java.security.KeyStore;
import java.security.cert.Certificate;

public class ExportACertificateFromJKSToFile {
  public static void main(String[] argv) throws Exception {
    FileInputStream is = new FileInputStream("mykeystore.jks");

    KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());
    keystore.load(is, "my-keystore-password".toCharArray());

    String alias = "myalias";
    Certificate cert = keystore.getCertificate(alias);

    File file = null;
    byte[] buf = cert.getEncoded();

    FileOutputStream os = new FileOutputStream(file);
    os.write(buf);
    os.close();

    Writer wr = new OutputStreamWriter(os, Charset.forName("UTF-8"));
    wr.write(new sun.misc.BASE64Encoder().encode(buf));
    wr.flush();

  }
}

Friday, June 21, 2013

Download and install Python on RHEL

Download and install Python 2.7.3

# wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
# tar xf Python-2.7.3.tar.bz2
# cd Python-2.7.3
# ./configure --prefix=/usr/local
# make && make altinstall
 

Download and install Python 3.3.0

# wget http://python.org/ftp/python/3.3.0/Python-3.3.0.tar.bz2 # tar xf Python-3.3.0.tar.bz2 # cd Python-3.3.0 # ./configure --prefix=/usr/local # make && make altinstall


Download and install Distribute

Distribute provides a framework for installing packages from the Python Package Index. Each Python interpreter on your system needs its own install of Distribute.
You can find out what the latest version of Distribute is here. At the time of this edit the current version is 0.6.35. Replace the version number below if there is a newer version available.

Download and install Distribute for Python 3.3

# wget http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz
# tar xf distribute-0.6.35.tar.gz
# cd distribute-0.6.35
# python3.3 setup.py install


 

Sunday, June 9, 2013

OIM 11g Release 2 (11.1.2) Download, Installation, and Configuration- Part 5 Configuring Database Security Store for an Oracle Identity and Access Management Domain

OIM 11g Release 2 (11.1.2) Download, Installation, and Configuration- Part 5 Configuring Database Security Store for an Oracle Identity and Access Management Domain




You must run the configureSecurityStore.py script to configure the Database
Security Store as it is the only security store type supported by the Oracle Identity &

Access Management 11g Release 2 (11.1.2).

The configureSecurityStore.py script is located in the <IAM_
HOME>\common\tools directory. You can use the -h option for help information
about using the script. Note that not all arguments will apply to configuring the
Database Security Store.
For example:
On Windows:
<MW_HOME>\oracle_common\common\bin\wlst.cmd <IAM_
HOME>\common\tools\configureSecurityStore.py -h
On UNIX:
<MW_HOME>/oracle_common/common/bin/wlst.sh <IAM_
HOME>/common/tools/configureSecurityStore.py -h


Configuring the Database Security Store Using Create Option

To configure a domain to use a database security store using the -m create option,
you must run the configureSecurityStore.py script as follows:
On Windows:
<MW_HOME>\oracle_common\common\bin\wlst.cmd <IAM_
HOME>\common\tools\configureSecurityStore.py -d <domaindir> -c IAM -p <opss_
schema_password> -m create
For example:
C:\OIM\Oracle\Middleware\oracle_common\common\bin\wlst.cmd C:\OIM\Oracle\Middleware\Oracle_IDM1\common\tools\configureSecurityStore.py -d C:\OIM\Oracle\Middleware\user_projects\domains\base_domain -c IAM -p welcome1-m create 
On UNIX:
<MW_HOME>/oracle_common/common/bin/wlst.sh <IAM_
HOME>/common/tools/configureSecurityStore.py -d <domaindir> -c IAM -p <opss_schema_password> -m create



wls:/offline> C:/OIAM/Middleware/Oracle_IDM1/common/tools/configureSecurityStore.py -d C:/OIAM/Middleware/user_projects/domains/base_domain -c IAM -p Welcome1
-m create

On successful execution of this script, you should see following screen status




OIM 11g Release 2 (11.1.2) Download, Installation, and Configuration- Part 2 Repository Creation Utility

OIM 11g Release 2 (11.1.2) Download, Installation, and Configuration- Part 2 Repository Creation Utility

  • Please view the Part 1 of this thread. Installation of JDK and Weblogic Server 
  • Download Oracle Fusion Middleware Repository Creation Utility 11g (11.1.2.1.0) for Microsoft Windows (32-bit)
  • Unzip the downloaded RCU file. Navigate to RCU_HOME/bin directory and run utility



  • Launch of rcu will bring the following screen. Click Next.


  • Choose the option to Create






  • Enter Database Information Host, Port, Service Name, Username and Password.




  • Click OK on Checking Prerequisites window.


  • Choose the Components to be created. Press Next 

  • Enter the password for all schemas and press Next



  • Press Create

  • Press Close when done.


OIM 11.1.2 R2: Install AD connector on Connector Server

OIM 11.1.2 R2: Install AD connector on Connector Server

Prior to installing the AD connector on the connector server, please ensure that the connector server is installed is installed. Please click here for more details on installation of connector server.


1.       Stop the Connector Server.

2.       From the installation media, copy the ActiveDirectory.Connector-1.1.0.6380.zip file from the bundle directory to the CONNECTOR_SERVER_HOME directory. For Example: C:\Program Files\Identity Connectors\Connector Server. And unzip the ActiveDirectory.Connector-1.1.0.6380.zip file there. The contents of zip file should be directly in Connector Server directory.




3.       Delete the zip file and start the Connector Server Service for the connector bundle to be picked up by the Connector Server.

OIM 11g Release 2 (11.1.2) Download, Installation, and Configuration- Part 6 Configure Oracle Identity Manager Server.

OIM 11g Release 2 (11.1.2) Download, Installation, and Configuration- Part 6 Configure Oracle Identity Manager Server.




  • Start the Administrator server $FM_HOME\user_projects\domains\base_domain\startWeblogic.cmd
  • To start the Oracle Identity Manager 11g Configuration Wizard, execute the <IAM_Home>/bin/config.sh script (on UNIX) on the machine where the Administration Server is running. (<IAM_Home>\bin\config.bat on Windows). The Oracle Identity Manager 11g Configuration Wizard starts, and the Welcome Screen appears.

  • Select OIM Server, Design console and Remote Manager


  • Enter Connection string and Infrastructure Information, press Next

  • Enter Weblogic Server URL, Username and Password















Sunday, June 2, 2013

OIM 11.1.2.2 : Deploying the SPML-DSML Service

OIM 11.1.2.2 : Deploying the SPML-DSML Service

1. Log in to the Oracle WebLogic Server Administration Console.


2. In the Change Center region, click Lock & Edit to enable modification to the settings on the page.

3. In the Domain Structure region, click Deployments.





















4. On the right pane, click Install.














5. On the Locate deployment to install and prepare for deployment page, in the Path field, enter      
    OIM_HOME\server\apps. 




6. In the region following the Current Location field, select spml-dsml.ear and then click Next.





7. On the Choose targeting style page, click Next to accept the default selection and proceed with            installation.



8. On the Select deployment targets page, in the Available targets for spml-dsml region, select oim_server1 if Oracle Identity Manager is installed in a nonclustered environment. Otherwise, select oim_cluster.




9. Click Next.

10. On the Optional Settings page, in the Source accessibility region, select I will make the deployment accessible from the following location, and then click Next.




11. On the Review your choices and click Finish page, verify the data that you have provided, and then click Finish.







12. On the Settings for spml-dsml page, review the configuration information of the deployed SPML-DSML Service, and then click Save.




13. In the Change Center region, click Activate Changes for the changes to take effect.

14. On the left pane, in the Domain Structure region, click Deployments. 




15. On the right pane, in the Deployments table, select spml-dsml, and then from the Start list, select Servicing all requests. The SPML-DSML Service is started.







16 For Oracle WebLogic Server:
http://IP ADDRESS:NON-SSL PORT NUMBER/spmlws/OIMProvisioning

https://IP ADDRESS:SSL PORT NUMBER/spmlws/OIMProvisioning

OCI Knowledge Series: OCI Infrastructure components

  Oracle Cloud Infrastructure (OCI) provides a comprehensive set of infrastructure services that enable you to build and run a wide range of...