How to create a Certificate that gets validated by Mozilla

Hi,
I've written an application that enables it's user to act as a CA.
He can create Key-Paris, Certificates, sign Certificates and various other things.
Among them he is able to export any KeyStore-Entry (i.E. a Key-Pair) to a PKCS#12 file.
The problem that I am encountering here is, that Mozilla Browsers (i.E. Firefox) won't recognize the importet Certificate as a valid one. It says "The certificate couldn't be verified for unknown reason" (sorry, but I can't provide the exact error message because I use a localized build of firefox).
What I do in order to reproduce this Problem is basicly this:
- Create a Key-Pair
- Create a (self-signed) certificate from the Public-Key
- Store them as a PrivateKeyEntry in my KeyStore
- sign the certificate with my self-signed CA-Certificate
- export my CA-Certificate to Firefox
- export my PrivateKeyPair to a PKCS#12-File wich I import with Firefox
Any help would be greatly apreciated.

(I would have appreciated it if you had pasted the certificate with the line-breaks, as required for PEM format certificates. Nevertheless...)
Your certificate shows why Mozilla will not recognize the self-signed certificate from keytool as a Root CA: it does not contain the SubjectKeyIdentifier or AuthorityKeyIdentifier extensions in them.
RFC3280 (http://www.ietf.org/rfc/rfc3280.txt) states the following:
Conforming CAs MUST support key identifiers (sections 4.2.1.1 and
4.2.1.2), basic constraints (section 4.2.1.10), key usage (section
4.2.1.3), and certificate policies (section 4.2.1.5) extensions.Implementors of software that handle digital certificates choose to implement PKIX standards in stages; Mozilla has implemented more PKIX standards than keytool does, so while keytool will recoginize a Mozilla (or other PKIX-compliant) CA certficate, almost no PKIX-conformant certificate-handling software will handle self-signed CA certs issued by keytool.
I would recommend you download something like EJBCA or OpenCA from sourceforge.net to create your self-signed CA. Ultimately, your CA certificate must look something like this (don't miss the SubjectKeyIdentifier and AuthorityKeyIdentifier extensions):
Certificate:
    Data:
        Version: 3 (0x2)
        Serial Number:
            2b:d0:5f:b0:71:64:67:0e
        Signature Algorithm: 1.2.840.113549.1.1.11
        Issuer: CN=StrongKey DEMO Root CA, OU=For StrongKey DEMO Use Only, O=StrongAuth Inc
        Validity
            Not Before: Jul 25 16:02:17 2006 GMT
            Not After : Jul 22 16:12:17 2016 GMT
        Subject: CN=StrongKey DEMO Root CA, OU=For StrongKey DEMO Use Only, O=StrongAuth Inc
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
            RSA Public Key: (4096 bit)
                Modulus (4096 bit):
                    00:88:42:9c:c0:40:1f:06:8a:f7:55:93:c5:35:4b:
                    54:38:58:61:9b:04:2b:61:07:44:05:76:42:f9:e8:
                    2d:b9:99:c5:84:16:b1:40:43:5b:06:ca:fc:9b:d4:
                    59:f7:d6:2e:28:78:63:12:09:58:9e:db:a2:91:c2:
                    58:b5:5b:1e:9f:5e:cd:57:bb:83:ec:10:85:45:c3:
                    ee:0e:f7:6a:71:63:95:5f:5c:ce:6c:fd:43:54:bd:
                    af:ef:63:ae:e3:37:18:44:7b:2c:a3:7f:8d:00:04:
                    9a:a4:7e:48:c9:9e:c6:de:65:40:17:f6:3e:58:3b:
                    b1:f2:a9:4b:61:fb:d7:52:b2:c7:7f:22:25:5b:53:
                    c3:0e:22:94:17:21:ce:82:c3:79:cd:96:9f:cd:7e:
                    b2:b5:f4:0a:38:ac:1a:2d:bb:21:66:b5:20:43:3d:
                    94:85:fa:2b:a7:53:88:43:bc:9b:03:d2:5e:4a:dc:
                    d0:90:ac:55:99:54:5c:34:d2:f0:8e:18:ff:ea:12:
                    14:da:7f:77:63:30:d1:75:77:f1:ef:ac:11:3a:48:
                    43:c3:d0:f9:bb:1e:07:f5:6e:da:c9:ab:88:ff:e2:
                    ad:b8:24:e6:b1:3a:88:14:69:0b:41:3e:b0:02:00:
                    61:b3:a0:43:b2:46:3a:b8:37:a8:c3:57:a6:db:71:
                    78:97:04:cf:19:e8:e8:5a:c9:1a:73:77:75:36:5e:
                    19:7b:f6:24:fa:2d:df:19:5c:5c:3d:a3:79:aa:81:
                    55:5b:34:4a:c5:7d:85:e5:d9:ee:5f:74:30:5f:23:
                    63:e9:45:49:5d:d6:ef:95:32:d3:2c:10:08:86:06:
                    be:79:3c:3c:f8:82:b7:37:2c:dd:59:66:96:fe:cf:
                    9a:60:58:23:a1:26:ff:16:f0:c9:55:bf:27:fc:af:
                    de:6a:11:da:9a:c8:65:77:e4:ca:b6:2f:d3:58:ef:
                    93:1b:34:de:3a:81:07:b7:12:b2:61:83:a2:77:fc:
                    f3:53:fc:c2:71:db:d2:97:c5:50:c8:34:e8:4e:54:
                    da:c3:fb:31:79:34:c2:eb:b3:e0:be:38:fc:1e:5c:
                    ca:04:13:83:9e:e3:b0:66:30:33:56:82:d6:dd:c9:
                    94:9d:3b:ca:10:f6:fc:99:05:e2:de:ca:0c:d6:6b:
                    60:a6:f8:29:fc:c4:18:82:ae:38:c2:9f:62:fe:3a:
                    66:da:8c:17:12:a1:24:4c:a3:a6:9b:7b:bb:54:b8:
                    da:ff:e2:81:a7:33:54:0b:17:ee:2a:db:d4:e3:1d:
                    42:23:c1:8b:01:9e:42:8f:da:62:7b:21:9a:1c:b6:
                    9c:f3:28:75:16:11:23:d0:42:65:cc:34:70:9e:f1:
                    04:00:77
                Exponent: 65537 (0x10001)
        X509v3 extensions:
            X509v3 Basic Constraints: critical
            CA:TRUE
            X509v3 Key Usage: critical
            Digital Signature, Certificate Sign, CRL Sign
            X509v3 Subject Key Identifier:
            82:05:B5:4B:E2:61:B0:C9:7A:6F:0F:D1:CC:A0:C3:62:FB:D2:5A:02
            X509v3 Authority Key Identifier:
            keyid:82:05:B5:4B:E2:61:B0:C9:7A:6F:0F:D1:CC:A0:C3:62:FB:D2:5A:02
            X509v3 Certificate Policies:
            Policy: 1.3.6.4.1.10514.509.1.4
    Signature Algorithm: 1.2.840.113549.1.1.11
        63:94:13:a9:6a:3b:a8:aa:34:e6:2b:0f:20:a9:55:d8:80:e8:
        54:0f:6a:15:b0:76:91:0d:98:a4:75:f9:50:09:2e:cf:30:2e:
        15:bc:21:c2:fe:f0:36:4b:60:7d:bb:b8:76:bd:9d:2b:d8:a5:
        a6:e7:60:83:00:f3:9c:65:f1:f7:b8:16:f7:72:ab:70:d7:c4:
        60:bf:fb:33:1e:67:e6:fa:a1:d0:23:5f:bf:69:fc:25:19:71:
        5a:c1:41:a3:ab:9b:da:09:92:2c:ee:83:c2:de:61:3a:b2:a4:
        c6:18:6d:dd:ef:77:2b:91:40:c5:9c:fb:61:66:f5:2d:4f:20:
        5a:c5:b6:1b:08:4b:a4:18:a7:b4:86:07:e1:c8:c1:a7:e3:8f:
        cf:01:4b:a4:a6:07:b3:65:5f:0a:1d:a1:7d:52:12:c3:43:8b:
        72:16:75:78:0a:b0:39:8a:92:33:4b:0e:ef:a8:c1:33:2e:cc:
        96:fd:a1:b1:2e:0b:1c:68:ff:fa:48:4f:43:60:32:a0:4f:9a:
        c0:29:e3:66:b9:ce:cb:0b:99:67:c0:74:33:4f:9b:e3:db:68:
        b9:ea:c2:67:f0:7a:db:88:93:7b:cf:5f:da:3b:ea:61:88:24:
        e7:82:5e:ce:be:39:c3:de:03:b5:42:3b:b3:50:12:95:25:b9:
        dc:7a:66:95:3b:97:6a:85:06:66:68:84:0f:3d:5b:93:de:2e:
        44:2e:58:97:1b:8b:56:db:7a:27:58:fe:ad:3c:32:4e:09:f9:
        60:2e:c0:3b:b4:80:53:04:41:ae:53:ff:b2:b7:f0:4d:72:9f:
        8b:59:14:7f:cc:42:83:74:3a:08:1c:2a:ab:95:7e:8e:ee:51:
        eb:2a:4c:82:5c:12:17:ec:22:92:93:22:62:55:36:91:6a:d7:
        5b:55:2d:46:e7:d4:30:fd:d5:c4:87:be:ea:a9:2c:fe:ac:5b:
        d7:51:fc:c7:4d:72:6a:f5:3e:40:ef:f7:63:8f:94:8c:95:f4:
        0f:4d:b0:02:31:9a:86:5f:0c:ce:f0:de:18:92:a8:09:3b:f9:
        3f:9b:95:5c:0e:ab:82:22:41:cc:7f:e2:83:d7:2f:cf:bc:1b:
        d7:65:ce:c1:7f:42:8d:5e:36:00:d6:14:42:0b:52:9b:23:46:
        5c:83:bb:ce:b8:e1:ac:43:b5:fb:c9:00:f7:cf:8d:2f:98:b8:
        99:f0:fb:a8:3b:38:df:a5:19:c6:d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/xH
qbPACaSse48VqmDG80/6HRdcJLxbOz6LKEg9JsUxfvPLNg==
-----END CERTIFICATE-----BTW, why are you using a non-standard key-size of 1023 bits?

Similar Messages

  • How to create a vi that counts for example 3 - 10 pulses in and then give a 1 puls out

    how to create a vi that counts for example 3 - 10 pulses in and then give a 1 puls out.
    I'm working with Labview 6.1
    Running with Labview 6.1
    Fieldpoint hardware

    Hi,
    You should be more specific, what kind of hardware you are using ???
    Which kind of pulse you are measuring ?? You are saying that you want to count a number of pulses and then when you get to a limit (which will be between 3 and 10) you want to output a pulse ?
    Andre Oliveira

  • How to create a single 'not null ' validation for all the items in a page ?

    Hi everyone ,
    how to create a single 'not null ' validation for all the items in a page ? I have many textfields . Instead of creating 'not null' validation for each item , I would like to create a a single validation control that will serve the purpose
    Thanks & Regards
    Umer

    Nice1 wrote:
    bob , as u said I have done the following :
    1) under create button , there are 9 items and for each item I have set Required to 'Yes'
    2) under delete button , there is 1 item and have set Required to 'Yes' for the item
    3) defined page validation for 9 items under 'create ' button and have set it to fire when 'create ' button clicked
    4) defined page validation for 1 item under 'delete ' button and have set it to fire when 'delete ' button clicked
    now , when I click 'create' button it even shows for the item under 'Delete ' button that it is a required itemSorry, I didn't see this note. The required template won't work, there is no way to attach it to the button.
    The best solution is as the reply a couple replies up
    Create 2 page type validations as a PL/SQL with code
    1st validation
    :P1_ITEM1 IS NOT NULL and :P1_ITEM2 IS NOT NULL ...... and :P1_ITEM9 IS NOT NULL  include all 9 items
    Set the When Button Pressed to the CREATE button
    2nd validation
    :P1_ITEM10 IS NOT NULL
    Set the When Button Pressed to the DELETE buttonI think that's going to be the easiest way to do it.
    Edited by: Bob37 on Apr 27, 2012 12:02 PM

  • How to create a program that accepts 5 digits from the user between 0 and 9

    how to create a program that accepts 5 digits from the user between 0 and 9 then put them in ascending order using link-list method..

    You can use a scanner to get user input from the command line.
    import java.util.*;
    public class Test {
        private List<Integer> list;
        private Scanner in;
        public static void main (String... args) {
            new Test ();
        public Test () {
            list = new LinkedList<Integer> ();
            in = new Scanner (System.in);
            for (int i = 0; i < 5; i ++) {
                System.out.format ("Please enter a number (%d more): ", (5 - i));
                list.add (in.nextInt ());
            Collections.sort(list, new Comparator<Integer> () {
                public int compare (Integer i1, Integer i2) {
                    return i2 - i1;
            System.out.println (list);
    }

  • Now how to create a tsql to get best result.

    Hi all
    I have a table that called   voucheritem
    This table has 6 fields
    And my standard value is:
    Rows
    Rules
    Subsidiary
    1ad
    2ad
    3ad
    4ad
    5ad
    1
    Rule 1
    2050  
    103
    207
    396
    452
    509
    2
    Rule 2
    2050
    107
    210
    354
    431
    580
    Row 1 : I want to compare rule1 and the table values (voucheritem), when the values are opposite of each other then show the values
    Row2 : I want to compare rule2 and the table values (voucheritem), when the values are opposite of each other then show the values
    I run this code:
    Select * from
    voucheritem
    Result is
    Rows
    Subsidiary
    1ad
    2ad
    3ad
    4ad
    5ad
    1
    2050  
    103
    208
    396
    452
    509
    2
    2050
    107
    210
    354
    435
    580
    3
    2050
    110
    210
    300
    430
    590
    4
    2050
    100
    207
    396
    452
    510
    5
    2050
    107
    210
    360
    431
    580
    6
    2050
    103
    207
    396
    452
    509
    7
    2050
    107
    210
    354
    431
    580
    see row 1 :
    2ad has 208 value its not equal by rule 1
    row 2: 4ad has  435 value . its not equal by rule 2
     Now how to create a tsql to  get best result.
    Name of Allah, Most Gracious, Most Merciful and He created the human

    Does this do what you were looking for?
    DECLARE @rules TABLE (ruleID INT, subsidiary INT, ad1 INT, ad2 INT, ad3 INT, ad4 INT, ad5 INT)
    INSERT INTO @rules (ruleID, subsidiary, ad1, ad2, ad3, ad4, ad5)
    values
    (1,2050,103,207,396,452,509),
    (2,2050,107,210,354,431,580)
    DECLARE @voucheritem TABLE (voucherID INT, subsidiary INT, ad1 INT, ad2 INT, ad3 INT, ad4 INT, ad5 INT)
    INSERT INTO @voucheritem (voucherID, subsidiary, ad1, ad2, ad3, ad4, ad5)
    values
    (1, 2050, 103, 208, 396, 452, 509),
    (2, 2050, 107, 210, 354, 435, 580),
    (3, 2050, 110, 210, 300, 430, 590),
    (4, 2050, 100, 207, 396, 452, 510),
    (5, 2050, 107, 210, 360, 431, 580),
    (6, 2050, 103, 207, 396, 452, 509),
    (7, 2050, 107, 210, 354, 431, 580)
    SELECT v.*,
    CASE WHEN v.ad1 NOT IN (SELECT ad1 FROM @rules) THEN 'E' ELSE NULL END AS ad1Error,
    CASE WHEN v.ad2 NOT IN (SELECT ad2 FROM @rules) THEN 'E' ELSE NULL END AS ad2Error,
    CASE WHEN v.ad3 NOT IN (SELECT ad3 FROM @rules) THEN 'E' ELSE NULL END AS ad3Error,
    CASE WHEN v.ad4 NOT IN (SELECT ad4 FROM @rules) THEN 'E' ELSE NULL END AS ad4Error,
    CASE WHEN v.ad5 NOT IN (SELECT ad5 FROM @rules) THEN 'E' ELSE NULL END AS ad5Error
    FROM @voucheritem v
    LEFT OUTER JOIN @rules r
    ON v.ad1 = r.ad1
    AND v.ad2 = r.ad2
    AND v.ad3 = r.ad3
    AND v.ad4 = r.ad4
    AND v.ad5 = r.ad5
    WHERE r.ruleID IS null

  • How to create an applet that shows a pdf as non-editable.

    Hi friends,
    Does any one know how to create an applet that shows a pdf document (should make that pdf a non-editable one) while clicking a link.Its urgent for me as I have to complete this one tomorrow itself...please help me...
    I am able to view the pdf document but that cannot be make a non-editable one.
    Can anyone gave me the code for that one....please I am not very much good in Java.

    PDF is a proprietary format and Java doesn't support it by default. Are you using a 3rd party tool to create the PDF? If so, you need to review the developer docs to see how to make the document non-editable. Frankly, I don't see why you're using an Applet to view a PDF in the first place. What exactly are you trying to do. I'm confused.

  • How to view the certificate that a component has been signed with?

    Hi all,
    Been using java webstart deployment for a while so understand how to sign and deploy java applications.
    Question I have is how to view the certificate that was used to Sign a jar. For example, if I signed a jar "myComponent.jar" how can I then view the certificate details within this jar. I currently have an old component which I signed with an old certificate and want to view the experation details.
    Thanks in advance
    Simon
    Edited by: simon_seagroatt on Sep 22, 2009 4:20 AM

    You can use command (it will show CN, OU, O, L, etc... and expiration date, of course):
    jarsigner -certs -verify -verbose pathToYourJar.jarI'd suggest redirecting output (>>out.txt).
    Bye.

  • How to create a form that will allow the applicant to upload their photo

    I have Adobe Acrobat 9 Pro Extended and I know how to create forms that require text input.
    How to create a form that will allow the applicant to upload their photo? I alo wish to know how to upload a photograph so that I can test the form I created.
    Thank you
    Adrian Watts

    test@ORA10G> with x as (
      2    select '234-1111' as customer, to_date('2-Jan-2008','dd-Mon-yyyy') as call_date, 'Order product' as reason from dual union all
      3    select '234-1132', to_date('3-Jan-2008','dd-Mon-yyyy'), 'Request info' from dual union all
      4    select '231-1154', to_date('4-Sep-2007','dd-Mon-yyyy'), 'Request info' from dual union all
      5    select '234-1111', to_date('2-Nov-2007','dd-Mon-yyyy'), 'Order product' from dual union all
      6    select '234-1132', to_date('9-Jan-2008','dd-Mon-yyyy'), 'Request info' from dual union all
      7    select '231-1154', to_date('9-Sep-2007','dd-Mon-yyyy'), 'Request info' from dual union all
      8    select '234-1111', to_date('5-Dec-2007','dd-Mon-yyyy'), 'Order product' from dual union all
      9    select '234-1131', to_date('7-Dec-2007','dd-Mon-yyyy'), 'Request info' from dual union all
    10    select '231-1154', to_date('1-Sep-2007','dd-Mon-yyyy'), 'Request info' from dual union all
    11    select '234-1111', to_date('8-Jan-2008','dd-Mon-yyyy'), 'Order product' from dual union all
    12    select '234-1131', to_date('3-Dec-2007','dd-Mon-yyyy'), 'Request info' from dual union all
    13    select '231-1154', to_date('4-Nov-2007','dd-Mon-yyyy'), 'Forward to Sales' from dual)
    14  --
    15  select customer,max(call_date), reason
    16  from x
    17  where reason = 'Request info'
    18  group by customer, reason;
    CUSTOMER MAX(CALL_ REASON
    231-1154 09-SEP-07 Request info
    234-1131 07-DEC-07 Request info
    234-1132 09-JAN-08 Request info
    test@ORA10G>
    test@ORA10G>pratz

  • How to create a program that will accept a series of strings of 0 and 1 onl

    how to create a program that will accept a series of strings of 0 and 1 only then displays 0 as 48 and displays 1 as 49.

    Isn't one thread enough for your homework?
    http://forum.java.sun.com/thread.jspa?threadID=5253850&messageID=10051155#10051155

  • How to create a javabean that generate random password?

    May i know how to create a javabean that can generate random password?
    that include character and string
    and length of 10.

    i created a class file for my java bean
    package autogenerate;
    import java.util.*;
    public class GeneratePwId
    private int MemId;
    private String Passwd;
    public GeneratePwId(){}
    public String getPasswd()
    return this.Passwd;
    public void setPasswd()
    char[] letters = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
    'J', 'K', 'L', 'M', 'N', 'P', 'R', 'T',
    'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c',
    'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
    'm', 'n', 'p', 'q', 'r', 's', 't', 'u',
    'v', 'w', 'x', 'y', 'z', '0', '1', '2',
    '3', '4', '5', '6', '7', '8', '9' } ;
    String pwd = "" ;
    while( pwd.length() < 10 )
    pwd += letters[ (int)( Math.random() * letters.length ) ] ;
    this.Passwd = pwd;
    i successfully compile my java file. and try to test it by writing a jsp file.
    here is my jsp code
    <html>
    <head>
    <title>
    Try retrieving password
    </title>
    </head>
    <body>
    <jsp:useBean class"autogenerate.GeneratePwId" id="bean0" scope="page"/>
    <%=bean0.getPasswd()%>
    </body>
    </html>
    but i encounter this error
    org.apache.jasper.compiler.ParseException: /jsp/GetPasswd.jsp(7,18) Attribute class has no value
    anyone can teach me how to solve this problem?
    thanks a alot!

  • How to create a VI that detects and records responses from user

    Does anyone has experience in creating a VI that allows the user to e.g., watch a video or series of images, pause or rewind video etc. and the VI records the duration of all pauses or user responses.

    avenue wrote:
    How to create a VI that detects and records responses from user
    You definitely need to check what 'EVENT STRUCTURE' is and how to use it... because thats needed to write such code.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • How to create a certificate signing request that works with Microsoft CA

    Hi, I have created a certificate signing request file with keytool. When I try to create a certificate from it with CertReq (I use a Microsoft CA) I get the following error message:
    Certificate not issued (Denied) Denied by Policy Module The request does not contain a certificate template extension or the CertificateTemplate request attribute. (The request contains no certificate template information. 0x80094801 (-214687 5391)) Certificate Request Processor: The request contains no certificate template information. 0x80094801 (-2146875391) Denied by Policy Module The request does not contain a certificate template extension or the CertificateTemplate request attribute.
    How do I create a certificate signing request file so that a Microsoft CA will accept it and create a certificate from it. Thanks, Linh.

    I'm writing a applecation about x509 to deal with certificate and certificate request.
    I found that DER format certificate request create by sun's software with no extensions.
    I think this cause your error.My be MS CA can't identify such a request!So it's difficult to solve this problem unless MS or Sun change their codes.
    JStranger

  • How to create a page that tests and then creates a valid DB LINK connection

    The problem is that I'd like to create a page that has all the necessary fields (name, host, port, etc) to create a database link just like the one in the SQL workshop - I'd prefer to have it done this way so as to limit the users from using SQL workshop. But i'd also like the DB Link tested before created.
    I've tinkered around a bit and was able to create the database link using a page process that calls an execute immediate statement to add the database link using items in the form section, however I'm confused as to how I would test the connection before hand.

    but rather the concept of a page that reads from table (maybe a "report?") to provide a result set of data which the user can click on a result to direct to another page.You are on the right track with the idea of an initial page with a report region listing your reports as links. Not sure from the provided information if this out of the box capability will meet your actual requirement, but try the Create Page wizard > New page > Form > Form on a Table with Report as a first approximation.
    instead of creating unique individual pages for each of the 100 Oracle Reports, featuring the report's attributes (parameters, etc), what do I need to do just have one APEX page that dynamically reads from the table and builds the Region and its Items based on what's in the table?If this can't be handled using the built-in Form on a Table with Report design pattern, it sounds like it will be possible using a dynamic form generated using the [APEX_ITEM API|http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/api.htm#BGBHDGAI] either as another report region or a PL/SQL Dynamic Content region.
    Also, any reference books that you guys recommend on the ins/outs of APEX? [Pro Oracle Application Express|http://www.amazon.co.uk/gp/reader/159059827X/ref=sib_dp_pt#reader-link], the authors of which are active voices on this forum, is a good book. The forum itself is an unbelievable resource, as is the hosted service for learning and experiment at [apex.oracle.com|http://apex.oracle.com/i/index.html].

  • How to create a certificate using keytool / terminal?

    I have problems with creating certificates using the terminal. I use the instructions below and typed in all the required information. When it asks me to type "yes" and confirm, the whole process just starts from the beginning over and over and I have to type in the same things. What do I do wrong? How do I confirm the information I typed in?
    I am trying to create a certificate to sign apps for GooglePlay and Amazon. I am using DPS Professional.
    Thanks for help!
    Instructions:
    (Mac OS) Create a certificate file using Keytool
    Open Terminal, which is located in the Applications > Utilities folder.
    Type (or paste) the following line (replace “myname.key.p12” with the actual name of your certificate):
    1
    keytool -genkey -v -keystore myname.key.p12 -alias alias_name -keyalg RSA -keysize 2048 -storetype pkcs12 -validity 10000
    Specifying “10000” sets the expiration date after 22 October 2033.
    Enter and reenter a password. Until the Viewer Builder supports the creation of custom Android apps, it's necessary to share this password with Adobe. Create a password that you can share.
    Follow the prompts to specify the certificate information.
    When prompted to confirm choices, enter yes, and then press Return to use the same password.
    A certificate is created in your prompt location, such as your user name folder. Copy this certificate file to a known location. Write down the password as well.

    It could be access/rights issue. Enable root user and try again.

  • How to Create SSL certificate for HTTPS Connection in SAP PI

    Hi,
              I have Proxy to HTTPS scenario. I need to provide my SSL certificate( SAP PI SSL Certificate) to the vendor.
              How to generate SAP PI SSL certificate. I have already imported vendor certificate using STRUST T-code.
             I am not sure from where to generate SAP PI SSL certificate that need to be shared with vendor.
             Please help me on this issue.
    Thanks,
    Siva

    Hi,
    Check if it helps:
    http://help.sap.com/saphelp_nwpi711/helpdata/en/49/26af8339242583e10000000a421937/frameset.htm
    But as mentioned for the colleague above, you can create that on Visual Administrator Tool -> Keystore
    Regards,
    Caio Cagnani

Maybe you are looking for

  • Apple id and nickname on iTunes account

    Hello, In my old Apple ID / iTunes account I can edit my "nickname" so my whole name doesn't appear on reviews etc. However, I can't do this on my current account (both are me.com accounts / Apple IDs). Is there a reason for this ?

  • Serial Communication through TCP/IP Socket

    There are several companies offering a serial to ethernet software solution--emulating a terminal server, however they are all for Windows or MAC. I am looking for a starting point, examples, or a final solution (yeah) that is 100% java. In the field

  • CANT READ ITUNES GIFTCARD NUMBER!! PLEASE HELP!!

    THE NUMBER ON MY ITUNES CARD IS ILLEGIBLE!! I NEEED HELP! I TYPED IN ALL THAT I COULD READ, AND I ENTERED THE SERIAL NUMBER...AND FOR SOME REASON THE SERIAL NUMBER ISNT CORRECT!! !

  • Is there any certification for oracle performance tuning..?

    Hi All, Do we have any certification for oracle performance tuning. Let me know if it is. Thanks, Ritesh

  • Win 7 64-bit driver needed for HP LaserJet 1022

    Cannot find a driver for HP LaserJet 1022 (non-networked, directly connected) printer.  The one from the HP website doesn't work.  This is a fully up to date Win7 64-bit installation. Thank you very much for any help you can give!! This question was