Ws-security in JWSDP 1.5 - expired truststore

Greetings,
I am trying to run the "simple" Ping example. However, the certificates in the truststore supplied with JWSDP 1.5 have expired. Where can I get a current truststore? Or better yet, how can I generate my own? A DOS batch file with my feeble attempts follows.
Thanks,
George
rem @echo off
rem distinguished name
rem CN - Certificate Name
rem OU - Organizational Unit
rem O - Organizaiton
rem L - Locality
rem ST - State
rem C - Country
set CLIENT_DNAME="CN=WS-Security_client,OU=IT,O=Kozytime,C=US"
set CLIENT_ALIAS=client
set CLIENT_PW=clientPassword
set CLIENT_KEYSTORE=%CLIENT_ALIAS%_Kozytime.jks
set CLIENT_CERTFILE=%CLIENT_ALIAS%_Kozytime.cert
set SERVER_DNAME="CN=WS-Security server,OU=IT,O=Youkea,C=US"
set SERVER_ALIAS=server
set SERVER_PW=serverPassword
set SERVER_KEYSTORE=%SERVER_ALIAS%_Youkea.jks
set SERVER_CERTFILE=%SERVER_ALIAS%_Youkea.cert
rem No client authentication keystore
set SERVER_NCAUTH_KEYSTORE=%SERVER_ALIAS%_Youkea_ncauth.jks
set DAYS_VALID=365
rem Generate client's keypair and keystore
rem Also creates a self-signed public key certificate for the client
rem By creating a keypair, the client can support client authentication
rem when connecting to the Tivoli Risk Manager server. If not using client
rem authentication, it is sufficient to import the server's public
rem key certificate into the client's keystore.
%JAVA_HOME%\bin\keytool -genkey -validity %DAYS_VALID% -keypass %CLIENT_PW% -dname %CLIENT_DNAME% -alias %CLIENT_ALIAS% -keystore %CLIENT_KEYSTORE% -storepass %CLIENT_PW%
rem Export client's public key certificate to a file
%JAVA_HOME%\bin\keytool -export -keystore %CLIENT_KEYSTORE% -storepass %CLIENT_PW% -alias %CLIENT_ALIAS% -rfc -file %CLIENT_CERTFILE%
rem Generate server's keypair and keystore
rem Also creates a self-signed public key certificate for the server
rem A server always requires a keypair, unlike the client
%JAVA_HOME%\bin\keytool -genkey -validity %DAYS_VALID% -keypass %SERVER_PW% -dname %SERVER_DNAME% -alias %SERVER_ALIAS% -keystore %SERVER_KEYSTORE% -storepass %SERVER_PW%
rem Export server's public key certificate to a file
%JAVA_HOME%\bin\keytool -export -keystore %SERVER_KEYSTORE% -storepass %SERVER_PW% -alias %SERVER_ALIAS% -rfc -file %SERVER_CERTFILE%
rem Import server's public key certificate into client's keystore as a
rem new trusted certificate.
%JAVA_HOME%\bin\keytool -import -keystore %CLIENT_KEYSTORE% -storepass %CLIENT_PW% -alias %SERVER_ALIAS% -file %SERVER_CERTFILE% -noprompt
rem Make a copy of the server keystore before adding the client's certificate
rem This can be used to test the case where no client authentication is required
copy %SERVER_KEYSTORE% %SERVER_NCAUTH_KEYSTORE%
rem Import client's public key certificate into the server's keystore as a
rem new trusted certificate. This is required only when client authentication
rem is required by the server.
%JAVA_HOME%\bin\keytool -import -keystore %SERVER_KEYSTORE% -storepass %SERVER_PW% -alias %CLIENT_ALIAS% -file %CLIENT_CERTFILE% -noprompt

I am having the same problem. I tried creating my own RSA keys with the same aliases, self signing them and putting them into the key/trust stores but still get errors. What procedure is there to replace them? Included below are my steps for dropping the certs and adding in new self signed ones, that I tried.
Josh
keytool -delete -keystore server-keystore.jks -alias s1as -storepass changeit
keytool -delete -keystore client-truststore.jks -alias s1as -storepass changeit
keytool -genkey -keyalg RSA -alias s1as -keystore server-keystore.jks -dname "cn=Client" -keypass changeit -storepass changeit
keytool -selfcert -alias s1as -keystore server-keystore.jks -keypass changeit -storepass changeit
keytool -export -keystore server-keystore.jks -alias s1as -storepass changeit -file s1as
keytool -import -alias s1as -keystore client-truststore.jks -storepass changeit -file s1as
keytool -delete -keystore client-keystore.jks -alias xws-security-client -storepass changeit
keytool -delete -keystore server-truststore.jks -alias xws-security-client -storepass changeit
keytool -genkey -keyalg RSA -alias xws-security-client -keystore client-keystore.jks -dname "cn=Client" -keypass changeit -storepass changeit
keytool -selfcert -alias xws-security-client -keystore client-keystore.jks -keypass changeit -storepass changeit
keytool -export -keystore client-keystore.jks -alias xws-security-client -storepass changeit -file xws-security-client
keytool -import -alias xws-security-client -keystore server-truststore.jks -storepass changeit -file xws-security-client

Similar Messages

  • Can't log in as root via ssh, secure.log says it has expired

    Hi,
    I've followed the guides to enable the root account via Directory Utility but I can't log in via ssh. In secure.log I get:
    Apr 26 09:09:56 snowy sshd[1797]: in pamsmauthenticate(): Failed to determine Kerberos principal name.
    Apr 26 09:10:00 snowy sshd[1794]: error: PAM: user account has expired for root from <xxxx hostname removed for privacy> via 10.0.0.1
    I've tried enabling/disabling the root account, changing its password.. I've made sure the root account is enabled in sshd_config and that it has a valid shell in /etc/shells.
    If anyone can tell me how to fix this I'd be very grateful.
    Thanks,
    Mark

    Nevermind I figured it out, needed to enable ssh for 'Administrators' group in Sharing -> Remote access

  • JWSDP xws-security validation of expired certificate

    I'm using JWSDP 1.6, in SecurityEnvironmentHandler (server side) I have >
    if (callbacks[i] instanceof CertificateValidationCallback) {
                        CertificateValidationCallback cb = (CertificateValidationCallback) callbacks;
                        cb.setValidator(new X509CertificateValidatorImpl());
    and this X509CertificateValidatorImpl() looks like >
         private class X509CertificateValidatorImpl implements
                   CertificateValidationCallback.CertificateValidator {
              public boolean validate(X509Certificate certificate)
                        throws CertificateValidationCallback.CertificateValidationException {
                   try {
                        certificate.checkValidity();
                   } catch (CertificateExpiredException e) {
                        // e.printStackTrace();
                        throw new CertificateValidationCallback.CertificateValidationException(
                                  "X509Certificate Expired", e);
                   } catch (CertificateNotYetValidException e) {
                        // e.printStackTrace();
                        throw new CertificateValidationCallback.CertificateValidationException(
                                  "X509Certificate not yet valid", e);
    ...As input of validate(X509Certificate certificate) method is expired certificate. It's thrown CertificateValidationCallback.CertificateValidationException, but this exception is lost in other classes JWSDP. I have no src to debug it.
    Secure SOAP message with this expired certificate is allowed to be OK.
    I don't know where is problem, because I can't debug it. Any idea ? thx

    ... this problem is only in JWSDP 1.6 ... not in JWSDP 2.0

  • How do you set the expiration date of a secure zone?

    I am trying to set up a form where a user can sign up for access to a secure zone for 1 year. How do I set the expiration date of the secure zone for them to expire one year after they sign up for it?
    I have tried using a hidden field named "ZoneExpiry" (I have tried "ExpiryDate" as well) in the form and set its value attribute manually in the HTML (with the format 13-May-13), and the expiration date always ends up being 31-Dec-9999.
    Any help would be greatly appreciated.
    Thanks!

    I have done this.
    Have a hidden input field on form  <input name="ZoneExpiry" id="ExpiryDate" />
    Then have a function as follows:
    var dat=new Date();
                                                      dat.setDate(dat.getDate() + 365);
                                                      var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun", "Jul","Aug","Sep","Oct","Nov","Dec")
                                                      var pretty = dat.getDate() + "-" + monthname[dat.getMonth()] + "-" + dat.getFullYear();   
                                                      jQuery("#ExpiryDate").val(pretty);
    Hope this helps.

  • I was unable to reach my bank. Firefox said that "connection is untrusted" and that the Security Certification has expired. I contacted my bank and they said to call Firefox. Please help.

    When attempting to go online to my bank, I received a message of "connection is untrusted". Security Certification has expired as of last night. My banker said that this is a problem with Firefox.
    Gwen Smith [email protected]

    It appears their security certificate is set to expire 02/25/2012. You can check this on one of their secure pages by clicking the Site Identity Button.
    *https://support.mozilla.com/en-US/kb/Site+Identity+Button
    *http://www.dria.org/wordpress/archives/2008/05/06/635/
    Is the calendar/clock on your system set correctly? Right-click the calendar/clock at the right end of the Windows Taskbar and choose Adjust Date/Time, if necessary. You can also access the Adjust Date/Time in Windows XP via Start > Settings > Control Panel > Date and Time. See https://support.mozilla.com/en-US/kb/Secure%20Connection%20Failed#w_certificate-will-not-be-valid-until-date
    If your system is not keeping correct Date and Time, you may need a new "coin" battery on your motherboard.
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question....
    Remove My Web Search; it is considered malware/spyware:
    *http://www.safer-networking.com/removemywebsearch.php
    #[http://www.pchell.com/support/mywebsearch.shtml PC Hell: My Web Search Removal Instructions]
    *http://helpint.mywebsearch.com/intlinfo/help/toolhelp.jhtml#q3
    *Also see: http://kb.mozillazine.org/Uninstalling_toolbars
    Also not related to your question...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]

  • Firefox is not remembering passwords for sites that i visit regularly. Ihave checked the box "remember passwords for sites" in the security tab under tools, but the passwords are not being remembered when I return to the sites.

    Firefox is not remembering passwords for sites that i visit regularly. Ihave checked the box "remember passwords for sites" in the security tab under tools, but the passwords are not being remembered when I return to the sites. I am running v 3.6.18

    Websites remembering you and automatically log you in is stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    Make sure that you do not run Firefox in Private Browsing mode.
    * https://support.mozilla.com/kb/Private+Browsing
    * In [[Private Browsing]] mode all cookies are session cookies that expire if that session is ended, so websites won't remember you.
    * Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    * http://kb.mozillazine.org/Cookies

  • Compilation error- xws-security sample aplication for signing

    hi
    I tried to run the sample application (xws-security) in JWSDP 1.6 but i am getting the following error.
    [echo] Running wscompile....
    [wscompile] C:\Sun\jwsdp-2.0\xws-security\samples\simple\build\server\WEB-INF\c
    asses\simple\PingService.java:10: cannot access java.lang.Object
    [wscompile] bad class file: C:\Sun\AppServer\jdk\jre\lib\rt.jar(java/lang/Objec
    .class)
    [wscompile] class file has wrong version 49.0, should be 48.0
    [wscompile] Please remove or make sure it appears in the correct subdirectory o
    the classpath.
    [wscompile] public interface PingService extends javax.xml.rpc.Service {
    [wscompile] ^
    [wscompile] 1 error
    [wscompile] error: compilation failed, errors should have been reported

    it worked ....thank you ghstark

  • Have to always enter security Qs and set to private computer with on line banking. It is FireFox and not my on line banking. What do I do?

    Every time I enter my on line banking it asks me all 3 security Qs and I have to reset my computer here at home to private. I called my on line banking and they say it is the Fire Fox security settings. Can you help me not to have the process happen each time I open my on line banking???
    Vickie Beson

    Where do you need to change those security settings?
    Firefox doesn't have such a setting unless you mean [[Private Browsing]] mode.
    * Such details are stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    * In [[Private Browsing]] mode all cookies are session cookies that expire if that session is ended, so websites won't remember you.
    * Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    See also:
    * http://kb.mozillazine.org/Cookies

  • Foxfire just updated to 3.6.14. Now when I open Facebook, in the secured site, it keeps asking the name of this computer each and every single time. Facebook does not recognize the computer, as it did before.

    As above, whenever I reopen Facebook, I have to put in my log in information, and then I have to put in "home", as the name of my computer, and I have to do this each time I open up Facebook, after I just got the new Firefox update to 3.6.14.

    * Websites remembering you and automatically log you in is stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    * In [[Private Browsing]] mode all cookies are session cookies that expire if that session is ended, so websites won't remember you.
    * Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.
    * http://kb.mozillazine.org/Cookies

  • Administrator user Expire

    Hi,
         The administrator password of BI Java is getting expired after we made a datasource change from BI ABAP to BI Java.Administrator is assigned as a Default user & UME security policy says it should expire afer 90 days.But 90 days has not been covered but still it got expired.I am in confusion whether it is taking any policy from ABAP??The security policy of Technical user is 0 days so will it be recommended if we change administrator from default to Technical user??

    Hi,
    Did the expiration occur right after the datasource change?  If yes, I think it's just a security measure to make sure that you pick up a new password for the 'newly' used Administrator.
    I'd say whether the Administrator should be Technical or Default would depend on how you use this account (background jobs? etc.) and your company's security policy
    Cheers,
    Dao

  • Internet Sales - Password Expiration Date

    We are running:
      - Internet Sales 4.0
      - CRM 4.0
      - Developer Workplace SP19
      - J2EE Engine 6.4
    We will have 8,000 customers logging into our Internet Sales application which connects to CRM.  Our CRM security policy is that passwords expire every 60 days. That applies to internal users.  We don't want our customers passwords to expire every 60 days.  What can we do?  We would like to have a different security policy for our customers than for internal users.

    Right. Furthermore it has some functional impact - see <a href="https://service.sap.com/sap/support/notes/622464">SAP Note 622464</a>: SAP Logon Tickets will not be issued for SERVICE and SYSTEM users; that impacts the ability to use SSO; currently SAP Logon Tickets are also required if you only want to use FORM-based authentication (i.e. an HTML rendered logon screen) instead of Basic Authenitication (-> popup rendered locally by the browser).

  • Trying to evaluate - new install, evaluation expired since 1969

    Hello everyone!
    I downloaded the latest version on the 15th, finished my install today.
    /opt/tarantella/bin/tarantella version shows version .983.
    tarantella license status indicates this:
    Product: Sun Secure Global Desktop Software
    Mode: EXPIRED Evaluation (end date: 1969/12/31)
    License summary:
    This is on a new Fedora core 4 install, no errors during install that I noticed, nothing in the documentation I can find so far to let me evaluate from today, since it's my first install.
    Any ideas where I can go from now to evaluate?
    Thanks in advance,
    -Alain Gagnon

    Hey!You gotta time machine now!Bravo! Seriously check with the vendor you got it from somethins screwed up,in my opinion.

  • Invalid Security Certificate (Gmail, Yahoo, Hotmail)___[SOLVED]

    When I try to connect to a site with https, I get this error.
    www.google.com uses an invalid security certificate.
    The certificate expired on 05/03/2009 02:02 AM.
    (Error code: sec_error_expired_certificate)
    I get this error on both a  wired and wireless connection. I changed the router DHCP DNS to OpenDNS in an attempt to fix the problem, but no luck.
    I have also rebuilt ca-certificates
    cp -r /var/abs/core/ca-certificates ./; makepkg; sudo pacman -U ca-certificates-*.pkg.tar.gz
    I am thankful for any reply, I would love to check my email.
    Last edited by architech (2009-03-28 07:23:47)

    architech wrote:
    oops:P
    To fix the problem =>
    sudo date -s "%the proper date here%"
    Or simply use ntp.

  • Despite of my passwords are saved in the firefox option security, but still when i login i need to enter it each time? i`m facing thing from past one month however, at first it works well. Please help

    my firefox browser used to store passwords so i need not to enter it every time i login although passwords are saved (I can see them in Firefox>Options>security) but i need to enter my ID & passwords each time. furthermore i need to rename my computer each time when i login to sites like facebok though i put a mark to remember it.
    Please help

    Websites remembering you and automatically log you in is stored in a cookie.
    * Create an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    Make sure that you do not run Firefox in Private Browsing mode.
    * https://support.mozilla.com/kb/Private+Browsing
    * https://support.mozilla.com/kb/Cookies
    * https://support.mozilla.com/kb/Enabling+and+disabling+cookies

  • Firefox says Yahoo page ID has expired. Help says I should be able to click on exception box, but one doesn't appear

    On Yahoo, trying to import contact. Clicked button to do so and got Firefox's "This Connection is Untrusted" with the following msg under Technical Details.
    overview.mail.yahoo.com uses an invalid security certificate.
    The certificate expired on 9/12/2010 5:37 AM.
    (Error code: sec_error_expired_certificate)
    Ckd help. Said I should see a button that allows me to add site exception, but no button appears with the page.

    First thing to try is a reboot of your iPad. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider until the Apple logo appears. Let go of the buttons and let the iPad restart. See if that fixes your problem.
    None of my cameras has a GPS function so I never see that data in the info of a photo in iPhoto for iOS. But I do see the map choice to set a location for the photo. Perhaps a reboot will fix this for you.

Maybe you are looking for

  • Version history - 7.0.59.102

    I'm currently using Skype version 7.0.59.100 and getting update messages to upgrade and see that the latest version is 7.0.59.102. What are the updates / bug fixes in the latest update? I've been looking for a revision log in support forums and commu

  • Need help setting up a "Caching Nameserver"

    Hi, I am running (non server) mac osx on several machines at home hidden behind a router using IP's 192.168.1.xxx. I am connected to the internet by a cable modem with roadrunner being the ISP de jour. All of my machines use a fixed IP. I recently bo

  • Help on loop

    hi. im new in pl/sql. would anyone know how to do a loop in sql plus? im in the process of revoking some 1k+ select rights on a specific user for multiple tables but i dont want to do it manually one by one. here is my revoke sql statement: revoke se

  • How make dynamic site with MUSE

    Howdy, i want ask how make dynamic site with muse, can it intergated with CMS like wordpress, joomla, drupal etc? Thanks, best regard, harles

  • WebCenter Imaging - Organization ID

    Hey I am using WebCenter Capture and Oracle Forms Recognitin to create a "batch" that is inputted by our Imaging server. The back consists of: 1. A txt file 2. A TIF image 3. An XML file The problem is that, in the XML file, there is a line <orgid>17