Keytool Error: DER Value Conversion

I'm trying to import a certificate into a Keystore and I keep getting the following error:
Keytool error: java.lang.IllegalArgumentException: DER value conversion
I'm running this on a W2K3 box with Java SDK 1.4.2. I have imported this certificate on two other servers that have the same configuration with no problems. I've been trying to fix this thing for days and it has become very frustrating.
Message was edited by:

Did you ever get any information on this?Yes, and I apologize for neglecting to post it here.
First, I didn't get the aix 1.3 ssl working with my code, but I am pretty sure I could have if I'd just change the packages I imported. What we have done with our customers using Java 1.3 on aix is have them keep using the old Sun JSSE 1.0.2 for the time being. And we have our solaris customers stick to Java 1.3 so we have only one version of the code.
In Java 1.4, ssl is bundled into Java. The ssl classes which were in vendor-specific packages like and, will now be in
This information is from Brad Wetmore of the Java Security Team at Sun.
So as soon as we can get Java 1.4 on AIX, we're moving to that and using the package.

Similar Messages

  • DER Value conversion

    I try to make an URL connection to a secure site with JSSE 1.0.3. I get the exception 'DER Value conversion' printed below, when I connect to an IIS server with a Baltimore test servercertificate. Does someone know how to solve this problem?
    Thanks, Arianne.
    java.lang.IllegalArgumentException: DER Value conversion
         java.lang.String, java.util.Date)[][], java.util.Date)
         boolean[], java.lang.String)
         boolean[], java.lang.String)
         boolean[], java.lang.String)
         void, int)
         void, boolean)
         void[], int, int)
         void, int)
         void, int)
         void<init>(,, boolean)
         void<init>(,,,, boolean),,
         void URLReader.main(java.lang.String[])
    Exception in thread main
    Process exited with exit code 1.

    Sure, this is a solution if you start from zero but we have the same problem and it did work with iPlanet4.0 and jre 1.2.2 but now that we upgraded to iPlanet 6.0 and 1.3.1 and having an attribute with no value like PHONE=; causes the NSServletRunner to crasch. And we have a few hundred certificates with some values missing. How can this be fixed?

  • Conversion Error setting value ''{0}'' for ''{1}''

    I have to populate a drop-down list on my page with the values coming from the DB.
    JSF code:
    <td align="right"><div id="wait" style="visibility:hidden;">Select an existing Application</div></td>
    <td align="left"><div id="wait1" style="visibility:hidden;" >
    <h:selectOneMenu id="exist" value="#{processApplication.selectedOwner}" styleClass="selectOneMenu">
    <f:selectItems value="#{processApplication.existingOwners}"></f:selectItems>
    processApplication bean:
    public List<SelectItem> getExistingOwners() {                    
    //existingOwners = this.getOwners();
         List < SelectItem > existingOwners = new ArrayList < SelectItem > ( ) ;
         SelectItem si_0 = new SelectItem();
         SelectItem si_1 = new SelectItem();
    SelectItem si_2 = new SelectItem();
         existingOwners.add(si_1);"values in the list" +existingOwners.get(1).getValue());
              }catch(Exception e){
              return existingOwners;
         public void setExistingOwners(List<SelectItem> existingOwners) {
              this.existingOwners = existingOwners;
              }catch(Exception e){
    public String getSelectedOwner() {
         List<SelectItem> test = this.getExistingOwners();
         selectedOwner = (String)test.get(1).getValue();
         logger.debug("selected owner from the list" +selectedOwner);
         }catch(Exception e){
         return selectedOwner;
         public void setSelectedOwner(String selectedOwner) {
              this.selectedOwner = selectedOwner;
    public List<SelectItem> getExistingOwners() should actually be a call to the DB to get the list.
    But since i was getting exception I tried to hard code the list in the method itself.
    But , I get this exception: values in the list 21
    [6/15/09 12:49:45:687 EDT] 0000003d ServletWrappe E SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: /processApplication.jsp. Exception thrown : javax.servlet.ServletException: Conversion Error setting value ''{0}'' for ''{1}''.
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(
         at javax.servlet.http.HttpServlet.service(
    Earlier, I had a drop down list that was working perfectly fine.
    But its values came from a Helper class and not the DB.
    What is it that Iam missing or doing wrong?
    Please help me.

    Based on your example on the link that you referred to I tried to do this
    as the initialization block (I read what it means)
    changed my getter method to
    public List<SelectItem> getExistingOwners() { return existingOwners; }
    private void fillSelectItems() {
    this.existingOwners = new ArrayList<SelectItem>();
         List test = this.getOwners();
         SelectItem[] myitem = new SelectItem[test.size()];
         for(int i=0;i<test.size();i++) {
         Object[] arrayOne = (Object[])test.get(i);
         SelectItem tmp = new SelectItem();
         myitem[i] = tmp;
    }catch(Exception e){
         }catch(Exception e){
    Basically, I moved what I had earlier in getter method I have it now in the fillSelectItems()
    Butthen, I get a NullPointerException.

  • IllegalArgumentException: Conversion Error setting value ''{0}'' for ''{1}'

    Hi all i am facing one problem while using <h:selectManyMenu style="height:100;" value="#{cityf.cityLook}">
    <f:selectItems value="#{}" />
    so ,plz help me about this error.!!!!!!
    java.lang.IllegalArgumentException: Conversion Error setting value ''{0}'' for ''{1}''.
    <h:form id="select">
    <h:panelGrid columns="1">
    <h:outputText value="Select City : "/>
    <h:selectManyMenu style="height:100;" value="#{cityf.cityLook}">
    <f:selectItems value="#{}" />
    City Bean:
    public class City {
         private CityIDLookup[] city;
         private String[] cityLook;
    public CityIDLookup[] getCity() {
         return city;
    public void setCity(CityIDLookup[] city) { = city;
    public String[] getCityLook() {
         return cityLook;
    public void setCityLook(String[] cityLook) {
         this.cityLook = cityLook;

    With SelectItem I mean the javax.faces.model.SelectItem class.
    <h:selectManyMenu value="#{myBean.selectedItems}">
        <f:selectItems value="#{myBean.selectItems}" />
    <h:selectManyMenu>MyBeanprivate String[] selectedItems; // + getter + setter
    private List<SelectItem> selectItems; // + getter

  • JSF: Conversion Error setting value

    Anyone knows how to fix this? I got the following error when I tried to put 50 numbers in the dropdown list:
    javax.servlet.ServletException: "{2}" Conversion Error setting value ''{0}'' for ''{1}''.
    Here is the bean
         private String[] items=null;
         public String[] getItems() {
              items = new String[50];
              for (int i=0; i <50; i++){
                   String va = String.valueOf(i);
                   items= va;
              return items;
         public void setItems(String[] it) {
              items = it;
    Here is the tag:
    <h:selectOneMenu id="test" value="1">
         f:selectItems value="#{QuestionBean.items}"/>

    f:selectItems value attribute must be a list of SelectItem objects.
    Transform your items list and it'll work.

  • Amount Conversion File error using VALUE keyword in BPC 7.5M

    Hi Experts,
    We just migrate from BPC 7.0M to BPC 7.5M. We also change the server to multi-server arquitecture 64-bit (Application server and BD Server).
    When we try to Import or Validate Transformation File with Amount conversion file using VALUE keyword, the system returns: "Error: Validate with data file failed". The content of conversion file columns:
    FORMULA = VALUE*0.001
    At first, we thogut that was a problem with 0.001 but we tried diferent formulas with the same error:
    FORMULA = 0.001*VALUE
    We also tried to use VALUE keyword with case sensitive and the result was the same. And when we don't use VALUE keyword the validation is OK.
    Any idea? Thanks in advance.
    Best regards,

    Hi everybody,
    First of all, thanks for your replies.
    The trasformation file is:
    SKIP = 5
    SKIPIF =
    The data file has the first column empty and the 5 firsts row are skipped.
    21.12.2011                      Salida din?ica de lista                              1;;;;;;;;
    ;Company;0FISCPER;0ACCOUNT;ZIMP_TYPE;...FIT_CTR;N? cliente;ZRAMO_P;        Importe
    The conversion file AMOUNT_TEST.XLS has only one line. With this conversion we want to change value from u20AC to Ku20AC.
    You should think that we used these transformation and conversion files in BPC 7.0M and it works fine.
    I'd like to remember that if we don't use AMOUNT_TEST.XLS or delete VALUE keyword, these transformation file works fine too.
    nilanjan, I tried to validate data file with one record and the system show me the same error.
    Roberto, our first migration was from BPC 7.0M to BPC 7.5M SP3, but we didn't test it. Then we apply SP7 because to solve other issues, and when we try to validate data load we detect that issue.
    Thank you for your help, I hope we can solve that problem soon.
    Best regards,

  • Error in global conversion rule for InfoObject 0INCOTERMS2

    When I activate BI content 2LIS_12_VCITM with transfer rule, The transfer rule was error with the message " Error in global conversion rule for InfoObject 0INCOTERMS2" and Mgs No. 263.
    The transfer rule cannot be activated.
    I checked the 0INCOTERMS2 infoObject . The global conversion rule is no error.
    The global conversion is in below.
    Type pools used by conversion program
    Conversion rule for InfoObject 0INCOTERMS2
        Data type       = CHAR
        ABAP type       = C
        ABAP length     = 000028
    $$ begin of routine - insert your code only below this line        -
    $$ end of routine - insert your code only before this line         -
    If you have any idea or face the similar problem, please suggest solution.
    Thank you.

    Good afternoon,
    If you have not done so already can you apply the SAP note  1387854 in your system and it should prevent the problem from happening again. If you also reactivate the infoobject  0INCOTERMS2 in RSD1 then it should be possible to manually activate the  transfer rule.
    Best Regards,

  • Ldap Synch Error in attribute conversion operation Issue in OIM 11g R2 PS1

    Hi All,
    We have enabled LDAP Synch in OIM11g R2 PS1 environment. We have requirement of users getting created through Web Services. When we create a user through Webservices, and provide all the attributes required to create user then we are getting LDAP Error in attribute conversion operation:
    2014-01-03T02:31:52.249-05:00] [oim_server1] [WARNING] [] [oracle.adf.controller.faces.lifecycle.Utils] [tid: [ACTIVE].ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: 1353004b0df87234:-67081615:143517a89d1:-8000-0000000000002807,0] [APP: oracle.iam.console.identity.self-service.ear#V2.0] ADF: Adding the following JSF error message: IAM-2050243 : Orchestration process with id 9864, failed with error message IAM-3010201 : LDAP create event failed : 00000057: LdapErr: DSID-0C090C3E, comment: Error in attribute conversion operation, data 0, v1db1.[[
    oracle.iam.ui.platform.exception.OIMRuntimeException: IAM-2050243 : Orchestration process with id 9864, failed with error message IAM-3010201 : LDAP create event failed : 00000057: LdapErr: DSID-0C090C3E, comment: Error in attribute conversion operation, data 0, v1db1.
      at oracle.iam.ui.platform.exception.OIMErrorHandler.reportServiceException(
      at oracle.iam.ui.platform.exception.OIMErrorHandler.reportException(
      at oracle.adf.model.binding.DCDataControl.reportException(
      at oracle.adf.model.binding.DCBindingContainer.reportException(
      at oracle.adf.model.binding.DCBindingContainer.reportException(
      at oracle.adf.model.binding.DCControlBinding.reportException(
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.reportException(
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(
      at oracle.adf.model.binding.DCDataControl.invokeOperation(
      at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(
      at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(
      at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(
      at oracle.iam.ui.platform.utils.FacesUtils.executeOperationBinding(
      at oracle.iam.ui.platform.utils.FacesUtils.executeOperationBindingFromActionListener(
      at oracle.iam.ui.catalog.view.backing.CartReqBean.submitActionListener(
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
      at java.lang.reflect.Method.invoke(
      at com.sun.el.parser.AstValue.invoke(
      at com.sun.el.MethodExpressionImpl.invoke(
      at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(
      at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(
      at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(
      at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(
      at javax.faces.webapp.FacesServlet.service(
      at weblogic.servlet.internal.StubSecurityHelper$
      at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
      at weblogic.servlet.internal.ServletStubImpl.execute(
      at weblogic.servlet.internal.TailFilter.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(
      at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(
      at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(
      at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at Source)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at oracle.iam.ui.platform.servletfilter.IdentityContextFilter.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at oracle.iam.platform.servletfilter.PwdMgmtNavigationFilter.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at oracle.adf.library.webapp.LibraryFilter.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at Method)
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at oracle.dms.servlet.DMSServletFilter.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at weblogic.servlet.internal.RequestEventsFilter.doFilter(
      at weblogic.servlet.internal.FilterChainImpl.doFilter(
      at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(
      at weblogic.servlet.internal.WebAppServletContext$
      at weblogic.servlet.internal.WebAppServletContext.securedExecute(
      at weblogic.servlet.internal.WebAppServletContext.execute(
    In this case user is getting created in OIM but LDAP Synch is not happening we are getting the error as mentioned above.
    When we create user in OIM  not through Web Serives but through Identity Self Service and provide any date attribute for example Start Date,Provisoning Date, Deprovisoning Date or any other date attribute, then also we are geeting the same error of Error in attribute conversion operation Issue, in this case user is not getting created in OIM and LDAP Synch is not happening.
    And when we create a user in OIM not through Web Serives but through Identity Self Service  and did not give any of the date attribute then user is getting created and LDAP synch is also happening successfully.
    We need to create users through Web Services and we need to resolve this issue asap, request you all to provide any helpful pointer on this.

    This can happen due to OIM-LDAP wrong attribute mapping/value getting passed.
    Can you please first try with OOTB attributes and see how it behaves?

  • Error during Unicode Conversion at DDNTF table

    We are doing a Unicode Conversion for our CRT systems. This system now
    is a SAP CRM 7.0 SR1 ABAP.
    We have performed preparatory steps (SPUMG, checks, updating R3load,
    R3ldctl, R3szchk, dboralib, ...),
    but when we start Import process we get an error in SAPSDIC package.
    The error looks like:
    (RTF) ########## WARNING ###########
    Without ORDER BY PRIMARY KEY the exported data may be unusable
    for some databases
    (EXP) INFO: table DDNTF will be exported with sorting
    (RSCP) ERROR: 'DDNTF' in UMGCCTL: Guess has illegal value.
    (RSCP) WARN: DDNTF: Missing in UMGSTAT,
    ERROR in nametab conversion
    conversion of nametab table 'DDNTF ':
    rscpMCStartTab: rc = 128
    (CNV) ERROR: data conversion failed. rc = 2
    (DB) INFO: disconnected from DB
    /usr/sap/CRT/SYS/exe/run/R3load: job finished with 1 error(s)
    /usr/sap/CRT/SYS/exe/run/R3load: END OF LOG: 20091229193651
    Any idea??
    Thanks in advance

    Yes I executed this Report using Menu Tool Bar.
    The first execution gave me some errors regarding some tables existing at database level but  not in DDIC. We ignored this errrors because those tables are not important.
    But the last try, we decided solve this inconsistencies deleteting those tables at database level, repeting report RADUCNT (in this case no errors appeared) and repeting the export with the same error..
    Now, we have seen in Tabscript STATUS of SPUMG there are some errors regarding DDNTF inconsistency found at table control. Reason 4.  But this reason means that faillback codepage missing at table control for this table. But as far I know, I can't fill failbak field for this kind of table...
    So know I'm reseting SPUMG, and reestarting again..
    But I don't understand what is the problem
    In a few minutes I will you inform about results
    Meanwhile is anybody have any suggestion or idea... please let me know

  • Error in ALPHA conversion while loading hierarchies

    I got the following error while loading hierarchies:
    <i>Error in ALPHA conversion in NodeId00000088 for InfoObject 0PROFIT_CTR
    Message no. RH224
    The technical node name  for node id 00000088 is not consistent for conversion exit ALPHA, which is stored with InfoObject 0PROFIT_CTR.
    Possible reasons for the error:
    The original consistent value returned by the DataSource was changed by a conversion routine to a non-consistent conversion exit value.
    The DataSource returns a value that is not consistent in the conversion exit.
    System response
    Loading the hierarchy was terminated.
    Check whether the correct conversion exit was entered for the InfoObject. If necessary, change the conversion exit, conversion routine or the data to be extracted.
    A further option is to activate automatic conversion in the transfer rules. Here, the system executes the conversion exit, making sure that the data is in the correct format.</i>
    If it is not hierarchies, we fix this error by prefixing the zeros (as we are working on Qbox we wont change the transfer rules to select the conversion routine) but here there is no PSA, the data is coming from ALE. Based on this please suggest me to how to fix this error?
    Points will be given for any helpful suggestion

    Can you please check out the Alpha Conversion Routine and also nodeid for that infoobject..
    There might be some inconsistencies in the code..
    Hope it helps

  • 46C Migration Oracle/HP-UX to MAXDB/SLE10 error: Duplicate value QCMT066

    To migrate a productive system from 46C to ECC600 I got an system copy export from our business partner.
    The source system is running on HPUX/Oracle. The target system should be MAXDB/SLE10.
    I run the import with R3setup and got error: Duplicate value QCMT066.
    To try to continue the import I set in DBMIG.R3S:
    Tthe system is coming up, but get: in SAPGUI: GEN_TABLE_NOT_EXISTS .. Table VSEOPARENT does not exist.
    I believe that I have to run the import again. How can I solve the duplicate value QCMT066 problem?
    Edited by: Trieu Chi Phung on Aug 4, 2009 4:01 PM

    Answer of SAP:
    Did you skip the error? because there errors in both SAPVIEW.log and
    The SAPVIEW is having error because the table VBKD was not imported yet, and this table belongs to package SAPAPPL1, so, you have to finish
    import the SAPAPPL1 in the first place.
    You have the error "Duplicate key in index" for table QCMT066
    One of the most important things to do before a migration starts is to
    look at the consistency between Database and ABAP DDIC (/DB02 > checks>
    button Database<> ABAP/4 DDIC) and to look after QCM-Tables from pre-
    viously failed table-conversions These temporary objects are used duringconversion (see attached note # 9385 this note is for 3.0F but explains
    the situation).
    I would like you to proceed as follows:
    1. In the source-system check SE14 > Extras > Invalid Temp.
    Tables and remove all entries from there
    2. Switch to use sidadm create a new temp-directory and run 'R3ldct
    without any parameters
    3. Check the STR-files created and grep for entries starting with
    4. For those objects use function module 'DD_NAMETAB_DELETE' and
    remove them from the nametab
    5. repeat the export from scratch
    If you want a workaround on this, you can modify the <package>.STR file
    and remove the entry QCMT066 and restart the import to continue.
    However, this maybe tedious if you and lots of this kind of object.

  • Value Conversion Filters

    I am trying to meet the new business requirements for the client I am working at. They recentlyd decided to eliminate all company codes and condense to one purchase organization. I have my purchase org and company code data in a Tuple.
    Can I use the value conversion filter to all data in my repository to elimate company codes and condense the purchase orgs? I guess my question really is can you use the value conversion filter if the field values to be converted are in Tuples?
    Thanks experts!

    Hey ,
    if you apply value conversion filters at the field level, the conversions are applied sequentially to each converted value that has not been individually edited or converted at the value level, now when you first map a field, each value in the Converted Value column appears in gray to indicate that it is inheriting value conversion filters from the field level. When you apply a manual edit or a value-conversion filter to an individual value, the Converted Value then appears in black to indicate that you have overridden inheritance from the field level. You can use the Restore Converted Value command to restore inheritance for a value.
    Value conversion filters automate repetitive and error-prone transformations, eliminating manual typing and the possibility of user error. They also allow powerful reformatting algorithms to be applied to an entire group of values.
    No conversion filter is necessary to trim leading and trailing spaces from source values, as Import Manager does this automatically when importing values into an MDM repository.
    Hope it gives you clarity.

  • Error in attribute conversion operation

    Hi All,
    I am inserting value for a AD attribute in YYYYMMDDhhmmss format. the type for attribute is: Time). But it throwing exception error in attribute conversion operation.
    Can any one give suggestion in this regards.
    Thanks & Regards,

    Provide an [url]SSCCE that has just enough code to demonstrate the problem, with no irrelevant fluff. Paste in the exact, complete error message and indicate clearly which line caused it.
    Right now, you're just asking people to guess at what your code looks like and what you're doing wrong.

  • Exec sqlplus process error in character conversion

    Having problems loading data using sqlplus_exec_template.sql. I'm trying to load data by executing PROCESS
    REPO RT USER = Rtm_access
    repo rt OWNER = RTM
    locatie wf = WFM_RTM
    this is the command from the dos prompt
    sqlplus rtm_access/rtm_access@miro @c:\owbdeploy\sqlplus_exec_template.sql RTM WFM_RTM PROCESS INI MIRO0 ","
    In a spool script I'll get the next output
    Session altered.
    Role set.
    ORA-24365: error in character conversion
    I also tried the command with system_params = ",". Then I
    got the same output error.
    Can you help me ?
    My best regards
    Aad van der Kooij

    I also tried the command without the process flow package,
    sqlplus rtm_access/rtm_access@miro @c:\owbdeploy\sqlplus_exec_template.sql RTM WFM_RTM PROCESS INI "," ","
    The problem also exists when I want to execute a mapping in sqlplus:
    sqlplus rtm_access/rtm_access@miro @c:\owbdeploy\sqlplus_exec_template.sql RTM STG_TRG_LOC PLSQL SMA_REF_LAND "," ","
    I forget to tell you the versions of OWB ( en
    SQLPLUS (8.0). Could this be the reason of the error.
    My best regards,
    Aad van der Kooij

  • Keytool error:

    hello ... im using jre 1.3.1 and wanna generate my csr ...
    first i do
    keytool -genkey -keyalg RSA -keystore keystore -storepass 123456 -validity 360
    keytool -certreq -keyalg RSA -file -keystore keystore
    and then i get one of these error:
    keytool error:

    You should specify the correct value for -dname option of -genkey command in the following format "CN=Mark Smith, OU=JavaSoft, O=Sun, L=Cupertino, S=California, C=US".
    Case does not matter for the keyword abbreviations. For example, "CN", "cn", and "Cn" are all treated the same.
    Order matters; each subcomponent must appear in the designated order. However, it is not necessary to have all the subcomponents. You may use a subset, for example:
    CN=Steve Meier, OU=SunSoft, O=Sun, C=US
    If a distinguished name string value contains a comma, the comma must be escaped by a "\" character when you specify the string on a command line, as in
    cn=peter schuster, o=Sun Microsystems\, Inc., o=sun, c=us
    It is never necessary to specify a distinguished name string on a command line. If it is needed for a command, but not supplied on the command line, the user is prompted for each of the subcomponents. In this case, a comma does not need to be escaped by a "\".

Maybe you are looking for