Import SSL cert into OC4J for remote server

i have Java code within a JSP that creates a secure URLConnection from within my OC4J container to another local server. this code works just fine when run as a rich application from JDeveloper, but when run from within the OC4J container it throws the following error:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Couldn't find trusted certificate
i have a deadline looming for Monday (June 19th) that requires this communication. what is the supported mechanism for enabling the OC4J instance to connect with Java code via SSL to another server? i know one usually uses the JSSE keystore, but from the OC4J documentation i've seen, it looks like you're supposed to use the Oracle Wallet instead, but i need verification... can anyone help regardring enabling my Java code to communicate with another local SSL server from within my OC4J instance?

you need to add the cert to your jvm's keystore
something like this
http://www-10.lotus.com/ldd/lcwiki.nsf/xpDocViewer.xsp?lookupName=IBM+Connections+Mail+1.3 +documentation#action=openDocument&res_title=Importing_SSL_certificatesicm13&content=pdcon tent
dont worry its about domino, bottom line its importing a msexchange cert into a java keystore. I use portacle ( http://portecle.sourceforge.net/ ) for managing my java keystores
edit: I use JUST portacle to import they certs, no need to bother with command line, i left it here for the sake of completeness

Similar Messages

  • Import Exchange cert into JVM for CF10

    Hello, everyone.
    I'm trying to learn the CFEXCHANGECONNECTION and CFEXCHANGECONTACT tags, and I'm having a bit of an issue.
    When I first started playing around with it, I was getting error messages that the connection couldn't be formed because the Exchange server only accepts https connections, so I set the protocol to https.
    Then I was getting an error message regarding the "cert not installed in CF server", so I managed to get a copy of the SSL cert (DER format .cer file) and followed instructions on how to import it into the JVM that CF uses.
    I'm still getting the error saying that the cert isn't installed in CF server.  Any suggestions?
    V/r,
    ^_^

    you need to add the cert to your jvm's keystore
    something like this
    http://www-10.lotus.com/ldd/lcwiki.nsf/xpDocViewer.xsp?lookupName=IBM+Connections+Mail+1.3 +documentation#action=openDocument&res_title=Importing_SSL_certificatesicm13&content=pdcon tent
    dont worry its about domino, bottom line its importing a msexchange cert into a java keystore. I use portacle ( http://portecle.sourceforge.net/ ) for managing my java keystores
    edit: I use JUST portacle to import they certs, no need to bother with command line, i left it here for the sake of completeness

  • Server settings for remote Server in Flash Builder 4.5 Premium

    Has anyone figured this out? Seems like everyone is talking about FlashBuilder that comes with PHP and that doesn't help me. So I'm still having trouble moving my mobile app to a remote server and I have FlashBuilder 4.5 Premium without PHP.
    I have created a PHP project outside of Flash Builder and then I have connected to it using the Data/Service tab, but then it ask for the server information and that is where I'm having the issues.
    It works create with the setting like this.
    MAC:
    Server Options
    Web Root: /Applications/MAMP/htdocs
    Root URL: http://localhost/
    But when you try to export a release build or just like to test it, and insert your server settings.
    Server Options
    Web Root: /home/username/domain_name/
    Root URL: http://mydomain.com
    It doesn't Validate which in turn won't let the project work. Also it would be nice to put the remote server in there for testing instead of just for release builds. Any one have an answer. Every tutorial or explanation shows localhost.
    thanks

    Hello guys,
    I have found a solution: In ZendFramework/library/Zend/Amf/Response/Http.php  linenumber 59:
    $ssl = $_SERVER['HTTPS']; is given an error.
    I did this:
    $_SERVER['HTTPS'] = 'off';
    $ssl = $_SERVER['HTTPS'];
    So add this line....
    And it works...
    Hope it works for you too.
    Ooh, and don't forget to follow the instruction of TweenOut.
    Erik.
    Van: tweenOut [email protected]
    Verzonden: dinsdag 20 december 2011 18:42
    Aan: EGJ Steens
    Onderwerp: Server settings for remote Server in Flash Builder 4.5 Premium
    Re: Server settings for remote Server in Flash Builder 4.5 Premium
    created by tweenOut <http://forums.adobe.com/people/tweenOut>  in Using Flash Builder - View the full discussion <http://forums.adobe.com/message/4095833#4095833

  • Connetion String for Remote Server

    Hey All, I'm new to Oracle so please bear with me if i ask somethings that should be fairly obvious. I'm attempting to connect to a remote server using OCCI and i have no idea how to set up my connection string to accomplish this. I've read through the OCCI programming guide particularly section 3.1 (Connecting to a database) but the examples leave the connection string variable empty. Could someone please furnish me with an example connection string that could be used to connect to a remote server? That would be greatly appreciated. If there's any information you need from me to help answer this question let me know. Thanks, Mike

    Hello guys,
    I have found a solution: In ZendFramework/library/Zend/Amf/Response/Http.php  linenumber 59:
    $ssl = $_SERVER['HTTPS']; is given an error.
    I did this:
    $_SERVER['HTTPS'] = 'off';
    $ssl = $_SERVER['HTTPS'];
    So add this line....
    And it works...
    Hope it works for you too.
    Ooh, and don't forget to follow the instruction of TweenOut.
    Erik.
    Van: tweenOut [email protected]
    Verzonden: dinsdag 20 december 2011 18:42
    Aan: EGJ Steens
    Onderwerp: Server settings for remote Server in Flash Builder 4.5 Premium
    Re: Server settings for remote Server in Flash Builder 4.5 Premium
    created by tweenOut <http://forums.adobe.com/people/tweenOut>  in Using Flash Builder - View the full discussion <http://forums.adobe.com/message/4095833#4095833

  • How do I prevent errors importing foreign characters into subtitles for DVD studio pro?

    How do I prevent errors importing foreign characters into subtitles for DVD studio pro?
    I have figured out just about everything necessary for creating subtitle tracks in several foreign languages, but the only problem is that some individual characters in some languages (like the "open quotation mark" symbol in Lithuanian!) do not import properly into the subtitle track.  I can type or paste the symbols in manually, but this means doing it hundreds of times in several different languages, and defeats the purpose of using the system I've created.
    Does anyone know how to import some of these odd characters.
    I import characters using a text file saved in Unicode-16, and I set the language of the track to the proper language (for instance, Lithuanian).
    I can't find the answer anyway, and really am stumped!!
    Thank you!!

    i think i might have figured out a solution.  it's a quirk in the program.  i noticed that sometimes the quotation marks DO actually import, but only if they are in the middle of a sentence.  they only FAIL to import at the beginning of a sentence.  so, what i did was to paste a space before the beginning of every sentence with a weird low-down quotation mark, and it imported fine.
    and it also seems to kill two birds with one stone, because sometimes it seems that DVD studio pro cuts off a few pixels at the beginning of a line -- so with a space inserted it just cuts off...nothing.
    so far so good.  thank you for trying to help, Tom.  MUCH APPRECIATED.  this stuff can be very frustrating.  i'm already going bald fast enough....erg.

  • Importing Wildcard Cert into Messaging Server and Comms Express???

    Hi all, does anyone know how I can import a wildcard certificate, private key, & CA cert into Messaging Server 6.3 and Comms Express 6.3?
    We have 3 files from DigiCert that I think need to be imported:
    1) A wildcard cert from DigiCert
    2) The DigiCert CA cert
    3) The private key
    Thanks in advance,
    Stewart

    Hi, we are upgrading from iMS5.2 to SJMS6.3 later this year but in the mean time i'm trying to work out how to import the wildcard certs, key, etc from DigiCert into our current iMS5.2. I've heard it can be done.
    We're currently using a cert from Verisign in our iMS5.2 environment.
    Stewart

  • Importing Wildcard Cert into Web Server???

    Hi all, does anyone know how I can import a wildcard certificate, private key, & CA cert into the Sun Java Web Server ?
    We have a wildcard certificate from DigiCert that I want import into the web server. There are 3 files in total:
    The files are:
    1) The wildcard cert
    2) The DigiCert CA cert
    3) The private key
    I've been playing around with tools like certutil, pk12util, and the web server admin GUI but so far no success.
    Thanks in advance,
    Stewart

    The private key and cert files are in PEM format. The two certs were supplied to us by DigiCert. We are currently using these files with Apache without any problems.
    Now we want to use them with the Sun Java web server.
    I think i've successfully imported them as show below.....
    # /opt/SUNWwbsvr7/bin/certutil -d /var/opt/SUNWwbsvr7/<instance-name>/config -L
    DigiCert Global CA - Entrust.net CT,,
    my-wildcard u,u,u
    # /opt/SUNWwbsvr7/bin/certutil -d /var/opt/SUNWwbsvr7/<instance-name>/config -K
    <0> my-wildcard
    In the web server admin gui, however, no certs are displayed.
    Stewart

  • Commandline option to capture JFR for remote server

    Hi,
    Is there any jrcmd option to start flightrecording for any remote server where xmanagement port is enabled? Through mission control we have option to create a JVM connection using xmanagement port and capture JFR . We need to have it through commandline .
    Thanks

    Hi Janice,
    It seems like the java that is on your path does not have OJVM installed. (Either you missed that JDK when you did InstallOJVM.bat, or InstallOJVM somehow wasn't truly successful.)
    To find out the java home directory, you can write a simple program that does:
    System.out.println("java home is " + System.getProperty("java.home"));
    and run it from the command line.
    However, it might be quicker for you to just specify the full path for java like this:
    C:\oracle\ora92\j2ee\home>C:\jdev\jdk\bin\java -ojvm -XXdebug,port4000,detached,quiet -jar oc4j.jar
    (Substitute "C:\jdev\jdk" with your jdev's jdk directory.)
    Hope this helps!
    -Liz

  • How can I import Openldap schema into sun one directory server?

    Hello All
    I have a schema which was written for openldap, and I want to import this schema into sun directory server. I found that some attribute syntaxes, like "NumericString", are not exist in sun directory server and some attribute definitions are also different. For example, the "internationaliSDNNumber" in sun directory is defined in "IA5String" syntax, but it is "NumericString" in openldap. Is there any effect on querying data from two different ldap server? How can I solve this problem?
    Thank you!

    http://directory.fedora.redhat.com/wiki/Howto:OpenLDAP
    Migration
    GaryThanks! But after I use some of scripts in that page, I got
    "Unknown attribute syntax OID "1.3.6.1.4.1.1466.115.121.1.36"
    It seems those scripts only transform schema file format, not the gap between different type(attribute syntax). Is it possible to import or add new type(attribute syntax) in sun one directory server?
    Thanks.

  • Error while importing CA cert into kerstore

    Hi all,
    I am facing below error while importing CA cet or trusted cert into keystore:
    bash-3.00$ keytool -import -v -trustcacerts -alias tcstestenv -file TCStestCA.cer -keystore keystore.jks
    Enter keystore password:
    keytool error: java.lang.Exception: Public keys in reply and keystore don't match
    java.lang.Exception: Public keys in reply and keystore don't match
    at sun.security.tools.KeyTool.establishCertChain(KeyTool.java:2618)
    at sun.security.tools.KeyTool.installReply(KeyTool.java:1870)
    at sun.security.tools.KeyTool.doCommands(KeyTool.java:807)
    at sun.security.tools.KeyTool.run(KeyTool.java:172)
    at sun.security.tools.KeyTool.main(KeyTool.java:166)
    bash-3.00$ keytool -import -v -trustcacerts -alias tcstestenv -file TCStestCA.cer -keystore keystore.jks
    Enter keystore password:
    keytool error: java.lang.Exception: Public keys in reply and keystore don't match
    java.lang.Exception: Public keys in reply and keystore don't match
    at sun.security.tools.KeyTool.establishCertChain(KeyTool.java:2618)
    at sun.security.tools.KeyTool.installReply(KeyTool.java:1870)
    at sun.security.tools.KeyTool.doCommands(KeyTool.java:807)
    at sun.security.tools.KeyTool.run(KeyTool.java:172)
    at sun.security.tools.KeyTool.main(KeyTool.java:166)
    bash-3.00$ keytool -import -v -alias tcstestenv -file TCStest.cer -keystore keystore.jks
    Enter keystore password:
    keytool error: java.lang.Exception: Public keys in reply and keystore don't match
    java.lang.Exception: Public keys in reply and keystore don't match
    at sun.security.tools.KeyTool.establishCertChain(KeyTool.java:2618)
    at sun.security.tools.KeyTool.installReply(KeyTool.java:1870)
    at sun.security.tools.KeyTool.doCommands(KeyTool.java:807)
    at sun.security.tools.KeyTool.run(KeyTool.java:172)
    at sun.security.tools.KeyTool.main(KeyTool.java:166)
    Regards
    Sunitha

    How did you create an empty keystore? Ideally when you use keytool -genkey command then it generates a keystore and a key. Have you made sure that the cert which you are importing is in PEM format (PEM certs can be opened in any text editor)
    Regards,
    Anuj

  • Create EJB Control For Remote Server

    I'm having trouble creating an EJB control for a EJB residing in a remote server.
    First, I've a JAR containing the remote/home interfaces and added it as a Library in the WLW 8.1 application.
    When creating a new EJB Control, there's no way to successfully create the control.
    At the STEP 2 GUI:
    I am able to specify a JNDI-NAME, but the home/bean interface fields are empty. If I click on "Browse application EJBs..." button, nothing is available. If I click on "Browse server EJBs", it only shows EJBs in the current server.
    Thanks

    Hi
    I believe you are on Workshop8.1 Spx.
    This is a known issue. The reason the ejb does not show up as an application ejb because we have just the interfaces as a library and not the whole EJB.
    Since the EJB's are not deployed on the server it will not show up either.
    Unfortunately there is no way to point to a remote domain and get all the ejb's deployed there.
    Workaround:
    You can deploy the ejb locally, create the ejbcontrol and then undeploy the EJB. You need to manually change the home jndiname to use the remote server url.
    Thanks
    Vimala

  • CF Flash Remoting Settings For Remote Server

    I am trying to setup Flex Builder 2 for evaluation, with Flex
    Builder on a Windows XP machine and ColdFusion (7.0.2) on a remote
    server. When attempting to start the Flex Project Wizard using
    Flash Remoting, I am having trouble understanding what the settings
    should be for root folder and root URL. Nothing I've tried,
    including hints based on other posts, has helped.
    It would be helpful to have an example in the help docs for
    this type of situation. It can't be uncommon and I see a few others
    have had similar trouble. Thanks.

    On your machine, these are the settings (I use CF with IIS,
    not the standalone CF server):
    On Project Properties>
    Flex Server: ‘C:\CFusionMX7\wwwroot’
    Root URL: ‘
    http://localhost/’
    When you upload to your remote server, upload the entire
    Output Folder (usually ‘bin’). You can leave out the
    xx-debug.html and xx-debug.swf files, but upload all the others.

  • Can't load/import converted video into itunes for sync

    I converted a video into ipod format by 2 diff software. They seem to have converted correctly as I can play them in apple quicktime. I tried to bring them into itunes for sync, but can't bring them. I tried dragging into movies, tried import, tried add files. Non of them working. Can anybody help me in this, ho can I bring the file into itunes? I am using itune 7, should I go back to old ver (6.x..)?

    I just converted some TV shows with iSquint, and drug them over to movies and presto they were there... I then when into Info, changed them to TV shows and they moved over to TV Shows.
    It works.

  • Defining Alias for Remote server Directory / Path

    Hi All,
             In my process chain I have an open hub process after which I have an abap program which sends out the data to a file on a remote server directory. But when it executes the program, it cannot find the path mentioned although I checked whether it is correct.
    I have also seen in several instances that for the remote server directory / path, the entire path is not typed in the variant's selection screen; instead it seems like an ALIAS. For example, if the path is
    w3n2-s501\javaappserver_test_staging\m234\sapdata on remote server w3n2-s501, then the  selection screen fileds show up like this:
    Remote Server Directory/Path     P               SAPTEST
    Remote Server Name                     P                          w3n2-s501     
    Does anyone know where this SAPTEST would be defined for the remote directory path?
    Thanks!

    Hi
    http://help.sap.com/saphelp_nw04s/helpdata/en/bd/0d6c3db297ff4d8a84e656502531f0/frameset.htm
    Hope it helps

  • How to import YouTube videos into FCP for editing

    I am doing a television interview, and we want to cut away to a YouTube video. Is there a way to download and import YouTube videos into Final Cut Express?

    It's a clip from CNN (with all credits etc. added). When one refers to it as a clip posted on "YouTube", then people understand the quality will be poor.
    I've watched television go from everything shot on a tripod with clean, meticulous editing rules, to almost anything goes. It has to do with cultural reference.

Maybe you are looking for