Enabling SSL in Release 12 [ID 376700.1] Modified 22-JUL-2011 Type WHITE PAPER Status PUBLISHED Enabling SSL in Oracle Applications Release 12 Last Updated: August 12, 2010 In This Document Section 1: Section 2: Section 3: Section 4: Section 5: Section 6: Section 7: Section 8: Section 9: Introduction Concepts and Terminology Middle Tier Setup Database Tier Setup Advanced SSL Setup Converting Existing Certificates Creating your Certifying Authority's Certificate Oracle Application Server Certifcate Authority Disabling SSL v2 and Weak Ciphers This document explains the setup steps for enabling SSL. The most current version of this document can be obtained in Oracle MetaLink Note 376700.1. There is a change log at the end of this document. Section 1: Introduction The most significant change for Secure Sockets Layer (SSL) support in E-Business Suite Release 12 is the use of the mod_ossl module for the Oracle HTTP Server. Like mod_ssl, the mod_ossl pl cryptography for Oracle HTTP Server. In contrast to the OpenSSL module, mod_ossl is based on the Oracle implementation of SSL, which supports SSL 3, and is based on Certicom and RSA Sec In Release 12 SSL certificates will be managed by the Oracle Wallet Manager 10g, which will be accessible via the familiar OWM graphical user interface (GUI) or the new ORAPKI command line in Release 12 will be using the Forms Listener Servlet a separate certificate is no longer needed for Forms. Forms will share the same wallet as the Oracle HTTP Server. Note: document Rate thisThe use of the Forms Server Listener with ConnectMode=https is not supported. ConnectMode=https only work s with JInitiator which includes the Oracle SSL libraries. Release 12 uses th and if you need to use https for the forms communication layer, you must use the servlet architecture. Section 2: Concepts and Terminology Secure Sockets Layer (SSL) SSL is a technology that defines the essential functions of mutual authentication, data encryption, and data integrity for secure transactions. Exchange of data between the client and server in such said to use the Secure Sockets Layer (SSL). SSL uses 2 types of Certificates: 1. User certificates These are Certificates issued to servers or users to prove their identity in a public key/private key exchange. 2. Trusted certificates These are Certificates representing entities whom you trust - such as certificate authorities who sign the user certificates they issue. How SSL works with Middle Tier Oracle HTTP Server: 1. 2. 3. 4. 5. 6. The client sends a request to the server using HTTPS connection mode. The server presents its certificate to the client. This certificate contains the server's identifying information. The client checks its list of Trust points and compares the information in the certificate with the server's public key. If it matches, the server is authenticated as a trusted server. The client sends the server a list of the encryption levels, or ciphers, that it can use. The server receives the list and selects the strongest level of encryption that they have in common. The client creates a session key which is used to encrypt the data and sends this session key to the server which can decrypt the data with its private key How SSL works with Oracle Database Server: 1. The UTL_HTTP package is used for making HTTP callouts from SQL and PL/SQL to a Web Node (Oracle HTTP server). 2. When the package fetches data from a Web site using HTTPS, it specifies the location to the Oracle Wallet that resides on the database server. This wallet contains the certificate for the Ce who signed the Web node's server certificate. Certificate Authority (CA) A Certificate Authority is a trusted third party responsible for issuing, revoking, and renewing digital certificates. All digital certificates are signed with the Certificate Authority's private key to ensure Certificate Authority's Public Key is widely distributed. Certificate Signing Request (CSR) A Certificate Signing Request (CSR) is a digital file which contains your public key and your name. You send the CSR to a Certifying Authority (CA) to be converted into a real Certificate. Digital Certificate (Public Key) A digital certificate is an electronic document that binds an identity to a pair of electronic keys that can be used to encrypt and sign digital information. Certificates are issued by a trusted third party Authority (CA). The document is usually in a standard X509 format and contains three elements: 1. Entity attributes (information about your organization) 2. Public key (which is bound to your organization) 3. Digital signature of the trusted CA private key Verisign (http://verisign.com/) will allow your organization to apply for a free trial certificate which will be valid for 2 weeks for testing purposes. Private (Server) Key 8. Secure Socket Layer Accelerators Secure Socket Layer (SSL) Accelerators can be used to reduce the SSL traffic and workload off the web servers. Run Autoconfig. Import your Server Certificate to the Wallet. Please refer to the following documents: Oracle Application Server Business Intelligence documentation Metalink Note 338071. also referred to as Server Gated Cryptography.Quick Start to Configure Discoverer Plus/Viewer/Portlet Provider 10. Step 1.2) Plus/Viewer For HTTPS (SSL) Access This document is for users who have installed Discoverer without Portal or Single SignOn (SSO). Do you wish to create a certificate request at this time?” Step 3 . Create a Certificate Request.2 in SSL + SSO This document is for users who have installed Discoverer with Portal and/or Single SignOn (SSO). 2. These instructions involve the use of the Oracle Wallet Manager Graphical User Interface. However. Submit the Certificate Request to a Certifying Authority. even if the browser only supports 40 bit encryptio certificate usually has 2 parts: the certificate itself and an extra intermediate certificate which is used to provide the step-up. are 128 bit certificates that enable all browsers to use 128 bit encryption. is bound to this private key.3 and source the <sid_machine>.How To Configure Discoverer 10g (10. If you wish to use these certificates for testing start with SSL. Restart the middle tier services. will be negotiated down to 40 bits. Note: DISCOVERER USERS who enable SSL for the E-Business Suite must also enable SSL for Discoverer. Set Your Environment. Step 2 .2. Global Server Certificates Global Server Certificates.Set Your Environment Logon to the application middle tier as the OS user who owns the middle tier files. 9. 7. Copy the Apache Wallet to the OPMN Wallet. Navigate to the $INST_TOP/ora/10. and then do Steps 1 through 7 when you are ready to switch to real certificates. 6.1 . This directory contains a wallet with demo certificates.Create a wallet Navigate to the $INST_TOP/certs/Apache directory.1. When work ing with wallets and certificates you MUST use the 10. Usually SSL accelerators are the primary targets for https requests from the user's the initial target for all desktop client communication.1: Usin Manager Command Line Interface in Release 12. 4. 3.1. The main steps for setting up SSL on the Middle Tier are: 1.3 executables.Create a Certificate Request After clicking "Yes" in step 2 the Create Certificate Request Screen will pop up: . If you have unexpired certificates from your Release 11i SSL instance you can convert them using the instructions in Section 5 . regardless of a 128 bit certificate.1. Move the existing wallet files to a backup directory in case you wish to use them again in the future. The certificate request (CSR) that you send to your Certificate Authority (CA) is derived from this p the resulting digital certificate (containing your public key) which is issued by your CA. Thawte calls them 128 bit SuperCerts. Click YES when prompted: “A new empty wallet has been created. Create a wallet.3 ORACLE_HOME variables.0. Metalink Note 339448. Do you wish to create it now?” The new wallet screen will now prompt you to enter a password for your wallet. Secure Server Certificates Secure Server Certificates are 128 bit certificates which provide 128 bit SSL encryption. therefore it is not possible to test unless one is purchased. Update the Context File. 10.env file to set your 10. Source your middle tier environment file (APPS<sid_machine>. for example. if the browser only supp the level of encryption. Answer NO to: “Your default wallet directory doesn't exist. Section 3: Middle Tier Setup The default location for the wallet in Release 12 is $INST_TOP/certs/Apache.The private key file is a digital file that you generate and for use to decrypt messages sent to you. Update the JDK Cacerts File. directing the request to the http server which is running in Before sending the response back to the desktop they again convert the non-SSL requests to SSL requests. The demo certificates are not secure and should never be used in a production environment. If you would prefer to use the Oracle Wallet Manager Command Line Interface refer to Note 376694. It is not possible to get trial versions of global server certificates.1. The marketing names of these certificates vary depending on the compa certificate.1.env) located in the APPL_TOP directory. They are responsible for converting "https" SSL requests to non-SSL "http" requests. then encryption is negotiated to 128 bits. If a browser has 128 bit support. 5. Open the Wallet manager as a background process: owm & On the Oracle Wallet Manager Menu navigate to Wallet -> New.1 . . placing its distinguished name (DN) in the Subject field. Answer Yes when prompted: Your default wallet directory does not exist. Organization: is the name of your organization. On the Select Directory screen change the Directory to your fully qualified wallet directory. When the wallet was created the certificates for the most Verisign. the server is th owner.1. The wallet directory will now contain the following files: cwallet.2 ORACLE_HOME/sysman/config directory: cat ca.Fill in the appropriate values where: Common Name: is the name of your server including the domain. Select your Country from the drop down list.sso ewallet. From the menu click Operations -> Export Certificate Request Save the file as server. Organizational Unit: (optional) The unit within your organization.crt in the wallet directory.Modify the OPMN wallet.crt >> <10.p12 server.crt to import it.txt file located in the 10. ftp the certificate (in binary mode) 2.crt Follow these steps to import server. Step 4 .Submit the Certificate Request to a Certifying Authority You will need to export the Certificate Request before you can submit it to a Certifying Authority.Import your Server Certificate to the Wallet. Click OK.crt).crt are not present in the wallet then adding the certificate will fail. To do so: Click on Certificate [Requested] to Highlight it. The Oracle Applications Rapid Install process creates a default "demo" opmn wallet in the $INST_TOP/certs/opmn directory that can be used in test instances for basic SSL testing.csr to your Certifying Authority to request a Server Certificate. Click OK. Copy the certificate to server. and Entrust were included automatically.csr From the menu click Wallet and then click Save. If you need to import the CA Certificate you'll also need to add the contents of ca. Do you want to continue? On the Select Directory screen change the Directory to your fully qualified wallet directory and click OK Enter your wallet password and click OK. From the menu click Wallet and check the Auto Login box. Be sure to make this password something you will remember. Exit the Wallet Manager.crt into your wallet: Open the Wallet Manager as a background process: owm & From the menu click Wallet then Open. thus the "user" for this user certificate.2 ORACLE_HOME>/sysman/config/b64InternetCertificate. Verify the Auto Login box is checked.1. You will need to use the password whenever you open the wallet with Oracle Wallet Manager or perform operations on t the Command Line Interface. Now th wallet has been created you will need to to use these same certificates for opmn. Locality/City: is your locality or city.crt in the wallet directory on your server by one methods: 1. Step 5 . copy and paste the contents into server. State/Province: is the full name of your State or Province . Double Click on server. Save the wallet: On the Oracle Wallet Manager Menu click Wallet. After you receive your Server Certificate from your Certifying Authority you will need to import it into your wallet. Note: If all trusted certificates that make up the chain of server. Click Save.Import User Certificate. Use the following steps to backup and copy the wallets: .crt file to b64InternetCertificate. Contact your certifying authority if you need to add their certificate.do not abbreviate.crt from your server certificate (server. With auto login enabled processes submitted by the OS user who created the wallet will not need to supply the password to access the wallet.txt Step 6 .csr You may now submit server. Click OK. On the Oracle Wallet Manager Menu navigate to Operations . Anoth the instructions in Section 7 to create ca. GTE. Server certificates are a type of user certificate. Since the Certifying Authority issued a certificate for the server. and save the provided file as ca. iPayment.sh script in the $ADMIN_SCRIPTS_HOME directory to stop and restart the middle tier Apache services.sso files from the $INST_TOP/certs/Apache directory to the $INST_TOP/certs/opmn directory. Step 7 .domain:<port>/OA_HTML/AppsLogin [R.L] Any updates you make to the custom.crt files to this directory Issue the following command to insure that cacerts has write permissions: chmod u+w cacerts Add your Apache ca.crt from the previous step) to be present in the JDK cacerts file.Navigate to the $INST_TOP/certs/opmn directory. s_webentryhost. som XML Publisher and BI Publisher require the server certficate (server. Copy the ewallet.Restart the middle tier services.sso files to the BAK directory just created. Section 4: Database Tier Setup Oracle products such as Oracle Configurator. Use the Oracle Applications Manager (OAM) Context Editor to change the SSL related variables as shown in this table: SSL Related Variables in the Context File Variable s_url_protocol s_local_url_protocol s_webentryurlprotocol s_active_webport s_webssl_port s_https_listen_parameter s_help_web_agent s_login_page s_external_url Non-SSL Value http http http same as s_webport not applicable not applicable url constructed with http protocol and s_webport url constructed with http protocol and s_webport url constructed with http protocol and s_webport Changes when using an SSL Accelerator Variable s_url_protocol s_local_url_protocol s_webentryurlprotocol s_active_webport s_webentryhost s_webentrydomain s_enable_sslterminator s_login_page s_external_url Non-SSL Value http http http same as s_webport same as s_webhost same as s_domainname # url constructed with http protocol and s_webport url constructed with http protocol and s_webport SSL Value http http https value of the SSL Accelerator's external interfacing port SSL Accelerator hostname SSL Accelerator domain name remove the '#' to use ssl_terminator. If you wish to port and force all users to access your pages via the https protocol you can add a redirect rule to $INST_TOP/ora/10.Update the JDK Cacerts File. Oracle Web Services requires the Certificate of the Certifying Authority who issued your server certificate (ca.Run Autoconfig Autoconfig can be run by using the adautocfg.L]: RewriteRule ^/$ https://<servername.crt to cacerts: keytool -import -alias ApacheRootCA -file ca.sh script in the Middle Tier $ADMIN_SCRIPTS_HOME directory. iStore.crt -trustcacerts -v -keystore cacerts keytool -import -alias ApacheServer -file server.crt from previous step) to be present.p12 and cwallet. Order Capture. and Pricing access data over the Internet in HTTP or HTTPS connection mode.conf file will be preserved when Autoconfig is run. s_active_webport SSL Value https https https same as s_webssl_port default is 4443 same as s_webssl_port url constructed with https protocol and s_webssl_port url constructed with https protocol and s_webssl_port url constructed with https protocol and s_webssl_port Step 9 .crt and server. s_active_webport url constructed with https protocol. Use the adapcctl. Copy your ca. Order Management. s_webentryhost.1.crt and server.3/Apache/Apache/conf/custom. Step 8 . In addition. Step 11 . RewriteRule ^/$ https://<servername.Customizations (optional) In Release 12 we keep a non-ssl port open for those products which need to access some of their pages via the http protocol. Quoting. Create a new directory named BAK Move the ewallet.crt -trustcacerts -v -keystore cacerts When prompted enter the keystore password (default password is changeit). .p12 and cwallet.domain:<port>/OA_HTML/AppsLogin [R. iStore. as well as the Oracle Applications Help System.conf in ssl terminated url constructed with https protocol. Step 10 .conf file. Follow these steps to be sure these requirements are met: Navigate to the $OA_JRE_TOP/lib/security directory Backup the existing cacerts file.Update the Context File. SSL for the Oracle Database Server (which acts as a client sending requests to the Web server) makes use of the Oracle Wallet Manager for setting up an Oracle wallet. you will be returned the first 2. Be sure you understand the limitations of self-signed certificates when using them in any environment. These are sometimes also used for Advanced SSL Configuration in a production environmen effectively your own client.0/appsutil/wallet'. Do you wish to create it now?” The new wallet screen will now prompt you to enter a password for your wallet. 2. Note: the AJPS protocol used between Oracle HTTP Server and OC4J is not visible to the end user There are 3 certificate options available to you when you creating your keystore for the Advanced SSL Configuration: 1. The instructions in this section are divided into 2 parts.request('[address to access]'. This gives you three options for advanced SSL configuration: 1. Examples: select utl_http. Self-Signed Certificates Self-signed certificates are appropriate to use for testing the Advanced SSL configurations. 'file:/d1/oracle/db/tech_st/10. null) from dual.oracle. Certificates signed by a Certificate Authority such as Verisign. Thawte.3 and source the <sid_machine>. Step 2. 'file:/d1/oracle/db/tech_st/10. Answer NO to: “Your default wallet directory doesn't exist. Oracle Application Server only. Step 1. or NULL if not using a proxy server.Set Your Environment Logon to the application middle tier as the OS user who owns the middle tier files. Save the wallet: On the Oracle Wallet Manager Menu click Wallet.com:4443'.2. Do you wish to create a certificate request at this time?” If you need to import ca.ORACLE APPLICATION SERVER OC4J supports SSL communication between Oracle HTTP Server and OC4J using AJPS.000 characters of the html page. Click NO when prompted: “A new empty wallet has been created. Create a new wallet directory named: wallet Navigate to the newly created wallet directory.3 executables.1 we have introduced support for secure communication between these layers as well as for the SQL*Net layer. 'file:[full path to wallet directory]'. Verify the Auto Login box is checked.crt to import it. not the actual wallet files. where: '[address to access]' = the url for your Oracle Applications Rapid Install Portal.crt into the middle tier wallet you will n wallet also. This is the secure version of Apache JServ Protocol which is the protocol that Oracle HTTP Server uses to OC4J. Double click on ca. Some steps will be slightly different if you are using Self-Signed Certificates. When a step contains a section for both Self-Signed Certificates and Certificates Signed by a Certificate Authority (incl Certificate Authority.1. '[proxy address]' = the url of your proxy server.env) located in the APPL_TOP directory. If you were required to import your ca. null) from dual. Both Oracle Application Server and Encrypting Network Traffic using Advanced Security.To enable SSL on the Database Tier you need only create a wallet.1. Navigate to the $INST_TOP/ora/10. To test that the wallet is properly set up and accessible. These certificates are appropriate for use in any environment and provide the highest level of security. navigate to the $ORACLE_HOME/appsutil directory. etc) be sure to follow the steps in the appropriate section. etc. Part 1 . Click OK. Section 5: Advanced SSL Configuration (Optional) In Release 12 the Oracle Application Server environment is managed by OPMN (Oracle Process Monitoring and Notification services) which is a set of processes that include the Oracle HTTP Serve containers (where J2EE processes run). 2. 3. The first part is for Oracle Application Server. Open the Wallet Manager as a background process: owm & On the Oracle Wallet Manager Menu navigate to Wallet -> New. After setting your environment for the database tier.Create your java keystore .3 ORACLE_HOME variables.request('https://www. the second part is for Encrypting Network Traffic using Advance Security. 3.'http://proxy. select utl_http. You do not need a server certificate for this wallet. '[proxy address]'. The final parameter is the wallet password. In Release 12. Both parts are option interdependent. which is set to null by default. null) from dual. Thawte. This advanced configuration on top of the basic SSL configuration.0/appsutil/wallet'.com:80'. 'file:[full path to wallet directory]' = the location of your wallet directory. login to SQLPLUS as the apps user and execute the following: select utl_http.oracle. Versign. These certificates were designed to be used within your Oracle Application Server environment. Source your middle tier environment file (APPS<sid_machine>. If the wallet has been properly set up. Certificates signed by the OracleAS Certificate Authority (see Section 8) . Click Save.crt: On the Oracle Wallet Manager menu navigate to Operations -> Import Trusted Certificate.null.env file to set your 10.com:4443'. Encrypting Network Traffic using Advanced Security only. Remember: When work ing with wallets and certificates you MUST use the 10.1.request('https://www. NOTE: You must use the prefix 'file:' and only the directory is specified.2. crt and/or jks_intca. mk dir j2ee cd j2ee Determine the values for the following parameters which will be used when you create the keystore for your instance: Parameter server domain password O l ST C Value name of the server where you are creating the keystore the fully qualified domain of the server In Release 12 the default keystore password is "changeit".domain. Create a new directory with the name j2ee and then change to this directory. Since we have not specified an alias the default alias "myk ey" will be used. Self-Signed Certificates This step is not applicable for self-signed certificates. OU=JKS.jk s -storepass password This command will return the following information: Alias name: myk ey Creation date: Nov 21. ST=ST. Note: We are using OU=JKS to distinquish this certificate from the Apache certficate.domain.csr to your Certificate Authority. B. Please make note of your password as you will need it when changing the default password in Step 5.jk s -k eypass password -storepass password -validity 365 -dname "CN=server.jks -file server. C=C" You should now see the file <server>. Self-Signed Certificates This step is applicable only if you are using self-signed certificates. ou=OU.Create your Certificate Request A. Step 3. You will sign the certificate in the keystore using the keytool's selfcert command. c=C" 2. name of your Organization your City or Locality your State or Province your 2 letter Country Code Create your keystore by entering the following command all on 1 line substituting the appropriate parameters (in bold) for your instance: k eytool -genk ey -k eyalg "RSA" -k eystore server.csr Submit the file server. You will not have a signed certficate to add to the keystore.Navigate to the web ssl directory as defined in the context file: grep s_web_ssl_directory $CONTEXT_FILE Note: Unless you have change the default settings this should be the same directory as $INST_TOP/certs which we will use in subsequent steps to identify this directory.crt to distinquish it from the Apache server. Note: we are naming the certificate jks_server.crt along with the Certificate Authority's root certificate which should be re-nam and the Authorities intermediate certifcate (if applicable) which should be renamed jks_intca.crt. After signing the certificate you will need to extract the certificate so it can be imported into the Apache and OPMN wallets This will be done using the keytool list command: keytool -list -rfc -k eystore server. 1. If your certificates were signed by a Certifying Authority continue with Step 4 B. o=O.Add your Signed Certificate to the Keystore A.jk s -k eypass password -storepass password -dname "cn=server.jks in your directory. 2007 Entry type: PrivateKeyEntry Certificate chain length: 1 Certificate[1]: -----BEGIN CERTIFICATE----MIICCzCCAXSgAwIBAgIER0SUrjANBgkqhkiG9w0BAQUFADBKMQswCQYDVQQGEwJVUzEMMAoGA1UE ChMDVFhLMQwwCgYDVQQLEwCBDAcxHzAdBgNVBAMTFmFwNjY2d2dzLnVzLm9yYWNsZS5jb20wHhcN MDcxMTIxMjAyNzI2WhcNMDgwMjE5MjAyNzI2WjBKMQswCQYDVQQGEwJVUzEMMAoGA1UEChMDVFhL MQwwCgYDVQQLEwNBVEcxHzAdBgNVBAMTFmFwNjY2d2dzLnVzLm9yYWNsZS5jb20wgZ8wDQYJKoZI hvcNAQEBBQADgY0AMIGJAoGBALaNY6QpChZPem7nXF7NJ5tmW1UFNqOgVW37fW4YiJH10yHKMLhB zx6z9QxuJiNKiNzjckJ4KfnLp8xG58lZlubKPSei7yz1KJxeM8j39NbbIifsPYfqtT/EPdDDGK+B kg0lK4c09TvxL93y0mFW7IG0PyqB0/ZTnBAcv2Fdyrg/AgMBAAEwDQYJKoZIhvcNAQEFBQADgYEA .crt using your jks_server. Note: if using Thawte as your Certificate Authortiy you should check the box: PKCS #7 Select this option for servers that use Java JDK k eystore . O=O.including Tomcat and Jetty.crt file you can do so by following the directions in Section 7: Creating your Certifying Authority's Certificate Step 4 ." When you receive your signed certificate copy it to this directory ($INST_TOP/certs/j2ee) as jks_server. If using self-signed certificates proceed to Step 4.crt If you want to create jks_ca. Enter the following all on 1 line s appropriate parameters (in bold) for your instance: k eytool -selfcert -k eystore server. Certificates Signed by a Certificate Authority To generate a certificate request enter the following command all on 1 line substituting the appropriate parameters (in bold) for your instance: k eytool -certreq -k eystore server. jks -storepass password -file jks_server.crt keytool -import -alias myintca -keystore server. Use the keytool import command to add ca. jks_intca.xml $ORA_CONFIG_HOME/10.1 patchset to a previous release you will need to delete the following files so that the new versions will be instantiated when autocon made any customizations to these files (custom user credentials. Copy the $INST_TOP/certs/Apache/ca.crt. Using the text editor of your choice.Update the Context File Use the Oracle Applications Manager (OAM) Context Editor to change the SSL related variables as shown in this table: Advanced SSL Related Variables in the Context File Variable s_oc4j_secure s_ajp_protocol s_forms_tracking_cookies s_oc4j_ssl Non-SSL Value false ajp disabled off Advanced SSL Value true ajps enabled on Step 8 . If you used a different Certificate Authority for your Apache Wallet than you used for the j2ee Java Keystore you will need to import the Apache Wallet's root CA Certificate into the key be recognized as a trusted Certifying Authority.3/j2ee/forms/config/system-jazn-data. The default alias "mykey" will be used. -trusted_cert -cert jks_ca. Use the adstpall.3/j2ee/oacore/config/system-jazn-data.Run Autoconfig If you have upgraded to Release 12. Certificates Signed by a Certificate Authority This step is not applicable if you are using self-signed certificates . We are not specifying an alias when importing jks_server.crt -pwd <your wallet password> Step 7 .Add the Keystore CA Certificates to the Apache and OPMN Wallets (conditional) This step is only necessary if you have used self-signed certificates to create the keystore OR you used different Certifying Authorities for the keystore and Apache Wallet. Either Type Certificate This step is applicable for both self-signed certificates and certificates which have been signed by a certifying authority.jks -storepass password -file jks_ca.3/j2ee/oafm/config/system-jazn-data. B.R/EeD4iJXuYV5eQmkp64D/aguNeyGu4qn67tU+iGDjDNtaO1qTPbTiDngD/H8WpPjmxPcJxszp6z fcKsFVgNmUC4js5U3DGA8Bcdl1ZGYvP7PUU0wZceHjD+KBB1sdV8KzL94OW41/RPXXUxIW6/UHRP huFcDlIK2ExiXu7c5vw= -----END CERTIFICATE----Copy the lines from -----BEGIN CERTIFICATE----.jks -storepass password -file jks_intca.1. Now you will use the import command to add it to the keystore substituting t parameters (in bold) for your instance : keytool -import -alias myca -keystore server.continue with "C.sun.crt file to the $INST_TOP/certs/j2ee directory.xml files. you will get handshake errors. etc) be sure to back the files up before deleting so you can re-add your customizations to the new files. It will depend on the Certifying Authority and certficate type.) You can use either of the following commands to see the contents of your keystore.xml Note: Deleting these 3 files is not necessary if you used the 12.1 by applying the 12. To import a the certificate for a Certifying Authority into your keystore: 1.crt to the keystore: keytool -import -alias ApacheCA -file ca. (This is because the -dname on the certifcate matches the -dname on the key when the keystore was created.4. 2. and jks_server. Copy $INST_TOP/certs/j2ee/jks_ca. Either Type Certificate" In Step 3 you copied jks_ca. Step 9.crt it to each wallet using the orapki command line interface: orapki wallet add -wallet .to -----END CERTIFICATE----.sh script in the Middle Tier $ADMIN_SCRIPTS_HOME directory. Add jks_ca.crt keytool -import -keystore server.sh script in the Middle Tier $ADMIN_SCRIPTS_HOME directory to stop all services.crt to both the $INST_TOP/certs/Apache and $INST_TOP/certs/opmn directories. save these lines as jks_ca. .1.crt -trustcacerts -v -keystore server. The -list command by default prints the MD5 fingerprint of a certificate.crt. Update the newly instantiated files with your previous customizations if required.crt to the $INST_TOP/certs/j2ee directory.Update the Keystore Password in the system-jazn-data.jks -storepass password Enter "yes" when prompted with: Trust this certificate? [no]: yes Step 5 .crt. Run autoconfig using the adautocfg. If the -v option is sp the certificate is printed in human-readable format: k eytool -list -k eystore <k eystore> -storepass <password> k eytool -list -v -k eystore <k eystore> -storepass <password> For more information on the keytool see:http://java.html C.as indicated in bold. $ORA_CONFIG_HOME/10.2/docs/tooldocs/solaris/keytool. If this is not done not.1.1 Rapid Install.xml $ORA_CONFIG_HOME/10.crt Enter "yes" when prompted with: Trust this certificate? [no]: yes Note: You may not have an intermediate ca certificate.crt.com/j2se/1. taken from the database documentation .1. Advanced SSL Configuration for the Oracle Application Server is now complete.this ensures that all EBS TNS network traffic is being encrypted. 4. Find the lines in the <users> section that read: <user> < name>oc4jkeystoreadmin</name> <display-name>OC4J keystore admin user</display-name> <guid>7D1943D0AF0411DC8F65CFCE4073EF3D</guid> <description>E-Business OC4J keystore admin user</description> < credentials>{903}Gfqv+nvfuUrfiQpcW7XcpptrOknyC0nj< credentials> </user> Note: the guid and credentials will be different on your system. the supported algorithms are version dependent.1.shows how a connection attempt will succeed or fail to provide an encrypted connection with various combinations of the ENCRYPTIO sqlnet.Shutdown Middle Tier Server Processes and Database Listener On the database server node. Be sure to include the !. REQUESTED or REQUIRED. This will encrypt the password the next time the service is started.A. CERTIFICATION: This configuration is certified for Oracle Applications Release 12 using Forms listener Servlet (the default mode) on the following platforms: Linux-x86 Windows-32 Solaris-32 AIX4-32 Advanced security encryption can be configured. ACCEPTED. Client REJECTED REJECTED S e ACCEPTED r v e REQUESTED r REQUIRED OFF OFF OFF No Connection ACCEPTED OFF OFF ON ON REQUESTED OFF ON ON ON REQUIRED No Connection ON ON ON Oracle has certified EBS Release 12 with the server parameter set to REQUIRED .1 E-Business Suite Technology Suite.ora file on client and server. 2. Although ANO/ASO supports a number of different encryption algorithms. Save the file and exit.sh stop <ORACLE_SID> On each middle tier server. Change the < credentials> line to read: < credentials>!password< credentials> where password = the password you assigned when you created your keystore. 3. and the Types of Encryptions Allowed and Supported. Open the system-jazn-data.3/j2ee/oacore/config directory and follow these steps: 1. Step 1 .3/j2ee/forms/config directory and repeat steps 1-4. Step 10 . shut down all processes or services: .sh script to restart the middle tier services. shut down the database listener: $ORACLE_HOME/appsutil/scripts/<sid_machine>/addlnctl.1. C. ANO/ASO encryption prevents sending TNS traffic "in-the-clear" over a network connection.ENCRYPTING NETWORK TRAFFIC USING ADVANCED SECURITY To configure the E-Business Suite Release 12 to encrypt network traffic sent over the TNS protocol we use the Advanced Networking Option (ANO) that is part of the Advanced Security Option (ASO database and included with the Release 12. For Release 12 certification the the server's preference is set to AES256. The remainder of this section will help you enable the encryption in each of the different ORACLE_HOME’s in an EBS deployment. Appendix A . The following matrix . Navigate to the $ORA_CONFIG_HOME/10. based on a combination of client and server configuration parameters as REJECTED. TNS (Transparent Networking Substrate) is an Oracle protocol running on top of a number of supported network protocols . If there are any issues logging into Oracle Applications or launching Forms these should be resolved before proceed have chosen to also implement SQL*Net Encryption. Example: <user> < name>oc4jstore</name> <display-name>OC4J keystore admin user</display-name> < guid>7D1943D0AF0411DC8F65CFCE4073EF3D</guid> <description>E-Business OC4J keystore admin user</description> < credentials>!password< credentials> < /user> B.3/j2ee/oafm/config directory and repeat steps 1-4. Part 2 .Using Network Traffic Encryption contains information on Enabling Trace.Restart the Middle Tier Services Use the $ADMIN_SCRIPTS_HOME/adstrtal.xml file in the editor of your choice. Navigate to the $ORA_CONFIG_HOME/10. Verifying ANO is Functioning Correctly. Navigate to the $ORA_CONFIG_HOME/10.typically TCP/IP. $ADMIN_SCRIPTS_HOME/adstpall.ora or sqlnet_ifile. Step 2 . restart all processes and services: $ADMIN_SCRIPTS_HOME/adstrtall. We keep the ANO/ASO directives in the sqlnet isolate it from any future autoconfig updates that affect the sqlnet. Source the DB Tier environment file located in Oracle Home directory.Update the Context File Use the Oracle Applications Manager (OAM) Context Editor to change the SSL related variables on each middle tier server as shown in this table: Advanced SSL Related Variables in the Context File Variable s_custom_dbc_params Non-SSL Value Advanced SSL Value ENCRYPTION_CLIENT=REQUIRED ENCRYPTION_TYPES_CLIENT=(3DES168) Note: This step sets the configuration for JDBC client connections and is OPTIONAL.ENCRYPTION_TYPES_SERVER=(AES256.Run Autoconfig (conditional) If you updated the context file in Step 4 you now need to run autoconfig on each middle tier server: $ADMIN_SCRIPTS_HOME/adautocfg. AES192.Create $TNS_ADMIN/sqlnet.DB Tier Changes Logon to the DB Tier server as the file system owner.ora and sqlnet_ifile.70 alphanumeric characters of you characters that form the value fo this parameter will be used when generating cryptographic keys. Step 6 . AES192. The more random the characters entered into this field are. 3DES168) SQLNET. Logon to the Middle Tier server as the file system owner.Restart the Middle Tier Services On each middle tier server. Step 4 .ora file.ora files on each Middle Tier.ora file for middle tier sqlnet encryption with Advanced SSL Configuration # ############################################################### IFILE = <full path to TNS_ADMIN>/sqlnet_ifile. the stronger the keys are. Use the editor of you choice to create the sqlnet.ENCRYPTION_CLIENT=REQUIRED SQLNET.ora file with the following lines: ############################################################### # # sqlnet.ora file with the following lines: ############################################################### # # sqlnet_ifile.sh <apps user> / <apps password> .CRYPTO_SEED=somelongandrandomstringfordeploymentUpTo70characters Note: the SQLNET. the JDBC client connection value will be ACCEPTED (which is the default value).ora file so we will need create these. Take a backup of the $TNS_ADMIN/sqlnet_ifile. Source your middle tier environment file (APPS<sid_machine>. restart the listener: $ORACLE_HOME/appsutil/scripts/<sid_machine>/addlnctl.ora file with the editor of your choice and add the following lines replacing [crypto seed] with a string consisting of 10 .env) located in the APPL_TOP directory.ora Use the editor of you choice to create the sqlnet_ifile.ENCRYPTION_TYPES_CLIENT=(AES256.ora for middle tier sqlnet encryption with Advanced SSL Configuration # ############################################################### SQLNET. Open the $TNS_ADMIN/sqlnet_ifile.sh appspass=<apps password> Check the autoconfig log file for errors.CRYPTO_SEED=[crytpo seed] Note: Oracle Corporation recommends that you enter as many characters as possible.sh <apps user> / <apps password> The Applications will be unavailable to users until the remaining tasks in this section are completed. SQLNET.ENCRYPTION_SERVER=REQUIRED SQLNET. The connection will cont error and the security service enabled as long as an encryption or integrity algorithm match is found.ora file.sh start <ORACLE_SID> Step 3 . Navigate to the $TNS_ADMIN directory. 3DES168) SQLNET. for the crypto seed to mak e the resulting k ey more random and therefore After the changes have been made. up to 70. By default. the Oracle Applications Middle Tier installations do not have either a sqlnet.CRYPTO_SEED does not need to be the same as used on the db tier. Step 5 . If the value is not set and the parameter on the DB server is set to REQUIRED. Copy ca.3 executables. Create a new directory called custom c./server.crt -wallet . On Details tab click Copy to File.Section 6: Converting Existing Certificates If you have existing un-expired certificates from a previous implementation of SSL in Release 11i they can be converted and imported into a Release 12 wallet using the tools: SSL2OSSL (Unix) SSLCONVERT (Windows NT/2000) Step 1.1.crt to your middle tier wallet directory copy the contents of ca./server. GTE. On the Certification Path tab click on the first (top) line and then View Certificate.3 and source the <sid_machine>.1.key.Set Your Environment Logon to the application middle tier as the OS user who owns the middle tier files.delta.3 you may do instructions: 1.0 protocol is no longer enabled .crt. Save the file as server. server. When work ing with wallets and certificates you MUST use the 10.1 .crt back to your wallet directory (if necessary) using one of the following methods: ftp (in binary mode) ca.crt >> <10. Enter ca. Click Next to continue.CER) and click next.Copy your Certificates Copy server. Edit the file in the $FND_TOP/admin/template/custom directory and make these changes: Find and comment (using #) the line that reads: SSLCipherSuite ALL:!ADH:!EXPORT56:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP Immediately below add these lines: # # Adding the following directives per recommendation from apps security # SSLProtocol -all +TLSv1 +SSLv3 SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM Your file should now look like this: # SSL Cipher Suite: # List the ciphers that the client is permitted to negotiate.3 (patch 8919489) we have modifed the configuration files according to recommendations made by the APPS Security Team. It can also be licensed separately as an option for the Oracle Application Server 10g Standard For more information please refer to the Oracle Application Server Certificate Authority 10g White Paper.crt to the $INST_TOP/certs/Apache directory. Review Note 387859./ca.tmp (Windows) to the $FND_TOP/admin/template/custom directory.0 are allowed. or RSA Data Security you'll also need to add it to b64InternetCertificate.3/Apache/Apache/conf/ssl.crt Section 8: Oracle Application Server Certificate Authority The Oracle Application Server Certificate Authority is a Certificate Authority (CA) for use within your Oracle Application Server environment where you are essentially both the client and the server. Copy either ssl_conf_1013. If you wish to take advantage of this increased security before you ready to upgrade to R12.crt and paste into a new file in your middle tier wallet directory using a text editor. this will start the export wizard.crt to your PC (if necessary) using one of the following methods: ftp (in binary mode) server. On the Middle Tier(s): a.B. Step 2 . Save the file as ca.B.3 ORACLE_HOME variables. Step 3 . d. I Identity Management option and is bundled with the Oracle Application Server 10g Enterprise Edition. #SSLCipherSuite ALL:!ADH:!EXPORT56:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP # # Adding the following directives per recommendation from apps security # SSLProtocol -all +TLSv1 +SSLv3 SSLCipherSuite HIGH:MEDIUM:!aNULL:+SHA1:+MD5:+HIGH:+MEDIUM e.txt Section 7: Creating your Certifying Authority's Certificate To create ca. and ca.env file to set your 10.TXK.1.conf file .Issue the command: $ORACLE_HOME/Apache/Apache/bin/ssl2ossl -cert .key -cafile .crt as the name and click ok to export the certificate. Close the wizard.crt and paste into notepad on the PC.1.2 ORACLE_HOME>/sysman/config/b64InternetCertificate. -ssowallet yes If your server certificate was issued by a Certifying Authority other than Verisign.Using AutoConfig to Manage System Configurations in Oracle E-Business Suite Release 12 and be sure you are comfortable with and understand the concepts befor 2. Section 9: Disabling SSLv2 and Weak Ciphers In R12.txt file located in the ORACLE_HOME/sysman/config directory: cat ca. Entrust. Navigate to the $FND_TOP/admin/template directory b. Navigate to the $INST_TOP/ora/10.crt Copy server.crt to open it with the Cyrpto Shell Extension. Verify the change is present in your $INST_TOP/ora/10.TXK.0 and SSL v3. Run autoconfig f.crt Double click on server. Select Base-64 encoded X. We now permit only strong ciphers (minimum of 12 v2. Click Browse and navigate to the directory of your choice.1.tmp (Unix) or ssl_conf_1013_nt.only TLS v1.509 (.crt -key .crt to your pc copy the contents of server.delta. some quite large. all the algorithms installed on that side are acceptable. and thus do not traverse the network.trc Sep 24 13:58 svr_13817. from those algorithms specified in its sqlnet. na_tns: na_tns: na_tns: . You should only run in tracing mode while verifying that encryption takes place. approximately 3kb..trc) file and can be safely ignored: nrigbni: Unable to get data from navigation file tnsnav. Below is section of a trace file where encryption is being successful used: .trc -rw-r--r-.trc svr_29144. Appendix A .trc Sep 24 13:59 svr_13819. using 3DES168 svr_29270. uncomment (or remove) the lines relating to tracing from sqlnet. using 3DES168 exit Note: If you have not defined a tnsnav.trc) files.g..ora file. you can use the sample configuration examples earlier in the document. In the trace directory you will see a number of trace files with names such as svr_NNNNN.Using Network Traffic Encryption 1. using 3DES168 svr_29144.) and the 3DES168 connections originate from the connection interface. You can choose to configure any or all of the available Oracle Advanced Security encryption algorithms and either or both of the available integrity algorithms Only one encryption algorithm a .. To enable tracing.. check the trace files in the appropriate directories to verify that ANO functionality is in use: Review the resulting sqlnet trace (.trc..trc -rw-r--r-.. and they do not contain any information concerning enabled encryption. Types of Encryptions that are Allowed and Supported This section provides you with background information – taken from the database documentation – that will help you understand now the selection of encryption algorithms takes place on a p You do not have to use this information.trc Other files are larger.1 oracle dba 70609051 Sep 24 14:20 svr_29270. Note(s): We have not tested which clients (browsers) do not work with stronger ciphers or SSLv3 / TLSv1. if any... When a connection is made which algorithm to use. and they will contain "encryption is active.trc:[20-SEP-2007 16:46:48:914] na_tns: encryption is active. You will see these files getting generated even when only the database and its tnslistener are running. Once satisfied that TNS traffic is encrypted. However if you wish to use different algorithms or have 3rd party tools that do encryption you will have to create your own configuration files. The connection fails with error message ORA-12650 if either side specifies an algorithm that is not instal Encryption and integrity parameters are defined by modifying the sqlnet.trc:[20-SEP-2007 16:47:20:369] na_tns: encryption is active.. ACTIVATING ENCRYPTION AND INTEGRITY In any network connection.ora file and bounce the tnslistener. The tns listener must be bounced for the trace setting to take effect. using CRYPTOALGORITHM.ora file.1 oracle dba 763726186 Sep 24 14:20 svr_29144. 2. and picks the first algorithm in its own list that also appears in the client list.. You may have to mak e changes to your client (browser) settings to enable the use of SSLv3 and TLSv1.ORA file. using AES256 The connections using AES256 are generated by the executables linked to the OCI C libraries (sqlplus. The server searches for a match between the algorithms available on both the client and the server.ora Some of the trace files are small.. it is possible for both the client and server to each support more than one encryption algorithm and more than one integrity algorithm. the following SQLNET parameters should be added to the SQLNET.. Verifying that ANO is Functioning Correctly After enabling tracing.trc $ grep 'encryption is active' svr_29270." messages.trc svr_29270. How to Enable Tracing Tracing is a helpful tool that will enable you to verify that encryption is active and/or help diagnose where errors are ocurring during the transactions. FNDLIBR. authentication is not active encryption is active../trace $ ls -ltr | -rw-r--r--rw-r--r--rw-r--r-awk '$5 > 3000 && $5 1 oracle dba 3601 1 oracle dba 3062 1 oracle dba 3062 < 4000' | tail -3 Sep 24 13:57 svr_13815. RCVOLTM. 3DES168 and AES256 $ cd $TNS_ADMIN/trace $ ls -ltr | tail -3 -rw-r--r-. If one side of not specify an algorithm list. $ cd $TNS_ADMIN/. then the following message will appear in the sqlnet trace (./.trc:[20-SEP-2007 16:47:20:369] na_tns: encryption is active.ora file on the clients and the servers on the network.1 oracle dba 28427064 Sep 24 14:20 svr_11547. There will be two different algorithms in use. These files are generated for connections originating from the da database instance itself. 3. TRACE_DIRECTORY_SERVER= < a valid directory to which the OS user running the listener can write to> TRACE_LEVEL_SERVER= 16 TRACE_UNIQUE_SERVER= ON TRACE LEVEL can be set to the level of tracing required.trc svr_29270. Note: tracing at this level generates many large files in the trace directory. Stop and restart the Mid Tier services. If the other side is set to REQUIRED. this side of the connection specifies that the security service is desired but not required. If the other side is set to REQUIRED and no algorithm connection terminates with error message ORA-12650. In this scenario. lack of a common service algorithm results in the service being disabled..algorithm is used for each connect session. but missing from ntcontab. $ORACLE_HOME/bin/adapters will display a list of the encryption options available for the following: a. the connection continues without error and with the security service enabled. and the value REQUIRED provides the maximum REJECTED ACCEPTED REQUESTED REQUIRED The default value for each of the parameters is ACCEPTED. ACCEPTED. the REQUIRED Select this value to enable the security service or preclude the connection. or REJECTED. In this scenario. this side of the connection specifies that the security service is not permitted. In this scenario. If the other side is set to REQUIRED an encryption or integrity algorithm match is found. Installed Oracle Advanced Security options Note: The following errors -if received . The four value of increasing security. In this scenario. After setting your environment to either the Tools or Database ORACLE_HOME using the "adapters" command: . NEGOTIATING ENCRYPTION AND INTEGRITY To negotiate whether to turn on encryption or integrity. based on a combination of client and server configuration parameters. REQUESTED There must be a matching algorithm available on the other side--otherwise the service is not enabled. or if the other side is set to ACCEPTED or REJECTED. Oracle Corporation recommends that you select algorit lengths in the order in which you prefer negotiation--probably with the strongest k ey length first. The security service is enabled if the other side specifies ACCEPTED. the connection terminates with error message ORA-1265 set to REQUESTED. If either the server or client has specified REQUIRED algorithm causes the connection to fail. Error!!! Oracle Names Server Naming is not completely installed! Change Log . The value REJECTED provides the minimum amount of security between client and server communications. NOTE: Advanced Security selects the first encryption algorithm and the first integrity algorithm enabled on the client and the server. this side of the connection specifies that the security service must be enabled. ACCEPTED Select this value to enable the security service if required or requested by the other side. the connection continues without error and without the security service enabled. Displaying the encryption options available from the Tools and Database ORACLE_HOME. this side of the connection does not require the security service. the connection continues without error and with service enabled. if the service is enabled. REQUESTED Select this value to enable the security service if the other side permits it. even if required by the other side. Encryption and Data Integrity Negotiation Table Client REJECTED S e r v e r REJECTED ACCEPTED REQUESTED REQUIRED OFF OFF OFF Connection fails ACCEPTED REQUESTED REQUIRED OFF OFF ON ON OFF ON ON ON Connection fails ON ON ON 4. If the other side specifies REQUIRED and there is no matching algorithm. Installed Oracle Net naming methods c. you can specify four possible values for the Oracle Advanced Security encryption and integrity configuration parameters. REJECTED Select this value if you do not elect to enable the security service. If the other side is set to REQUESTED and no algorithm match is found. Installed Oracle Net transport protocols b. The connection fails if the other side specifies REJECTED or if there is no compatible algorith The following table shows whether the security service is enabled.o. Otherwise.. but it is enabled if the other side is set to REQUIRED or REQUESTED.may be safely ignored: Error!!! SDP/IB is not completely installed! Present in libntcp10. 2008 July 17. 2010 Oct 28. Legal Notices and Terms of Use | Privacy Statement . 2007 Description Added Section 9 .Date Aug 12. 2007 Oct 4. 2010.Disabling SSL v2 and Weak Ciphers Updated iHelp url settings.1 and Advanced SSL Configuration. 2008 Nov 3.54 KB) Related Products Oracle E-Business Suite > Applications Technology > Technology Components > Oracle Applications Technology Stack Oracle E-Business Suite > Applications Technology > Application Object Library > Oracle Application Object Library Keywords R12 Errors ORA-12650 Back to top Copyright (c) 2007. Published 12.conf section. Updated for Release 12. 2010 Attachments Create CSR jpg (35.1 updates to Metalink Processed remarks and added Certificate Provisioning for XML Publisher or Business Intelligence Publisher. 2009 Dec 23. Initial creation. Added note that use of the Forms Server Listener with ConnectMode=https is not supported. 2007 Jan 24. 2008 Oct 7. 2008 Nov 5. All rights reserved. Added ANO/ASO and Appendix A Added Discoverer Notes.1 by Oracle E-Business Suite Development Copyright 2008 Oracle Corporation Last updated: August 12. Oracle. Modified SSL Accelerator changes. 2007 July 20. Added custom. 2009 May 1. Note 376700.
Report "Enabling SSL in Oracle Applications Release 12"