Unsupported key type: Sun DSA Public Key

Hi all,
Does anyone know how to use the SHA1withDSA algorithm with WSS4J/Axis?
When using a private key generated by keytool with type DSA, I get the errors:
org.apache.ws.security.WSSecurityException: Cannot encrypt data
Caused by: java.security.InvalidKeyException: Unsupported key type: Sun DSA Public Key
It seems I have to generate the key using type RSA.
Regards,
Alex
Edited by: ao on 2012-mar-12 12:53

DSA (Digital Signature Algorithm) keys, by definition, can only be used for digital signature and not for encryption. As EJP suggested, you must use the RSA key-type and the SHA1withRSA - I would recommend using SHA256withRSA - construct to enable message-confidentiality.
Arshad Noor
StrongAuth, Inc.

Similar Messages

  • Invalid Key Exception: Unsupported key type: Sun RSA public key, 1024 bits

    I am trying to retrieve certificates from Microsoft Keystore and extract its keys using SunMSCAPI in jdk 1.6. It gives me an invalid key exception, when I am trying to wrap the Symmetric key (which was previously used to perform AES encryption on data), using RSA algorithm.
    Code snippet:
               // RSA 1024 bits Asymmetric encryption of Symmetric AES key             
                // List the certificates from Microsoft KeyStore using SunMSCAPI.
                      System.out.println("List of certificates found in Microsoft Personal Keystore:");
                       KeyStore ks = KeyStore.getInstance("Windows-MY", "SunMSCAPI");
                       ks.load(null, null) ;
                       Enumeration en = ks.aliases() ;
                       PublicKey RSAPubKey = null;
                       Key RSAPrivKey = null;
                       int i = 0;
                       while (en.hasMoreElements()) {
                            String aliasKey = (String)en.nextElement() ;              
                            X509Certificate c = (X509Certificate) ks.getCertificate(aliasKey) ;     
                            String sss = ks.getCertificateAlias(c);
                            if(sss.equals("C5151997"))
                            System.out.println("---> alias : " + sss) ;
                            i= i + 1;
                            String str = c.toString();
                            System.out.println(" Certificate details : " + str ) ;
                          RSAPubKey = c.getPublicKey();
                            RSAPrivKey = ks.getKey(aliasKey, null);  //"mypassword".toCharArray()
                            Certificate[] chain = ks.getCertificateChain(aliasKey);     
                       System.out.println("No of certificates found from Personal MS Keystore: " + i);
                // Encrypt the generated Symmetric AES Key using RSA cipher      
                        Cipher rsaCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding", ks.getProvider().getName());            
                       rsaCipher.init(Cipher.WRAP_MODE, RSAPubKey);
                       byte[] encryptedSymmKey = rsaCipher.wrap(aeskey);   
                       System.out.println("Encrypted Symmetric Key :" + new String(encryptedSymmKey));
                       System.out.println("Encrypted Symmetric Key Length in Bytes: " + encryptedSymmKey.length);
                       // RSA Decryption of Encrypted Symmetric AES key
                       rsaCipher.init(Cipher.UNWRAP_MODE, RSAPrivKey);
                       Key decryptedKey = rsaCipher.unwrap(encryptedSymmKey, "AES", Cipher.SECRET_KEY);Output:
    List of certificates found in Microsoft Personal Keystore:
    ---> alias : C5151997
    Certificate details : [
    Version: V3
    Subject: CN=C5151997, O=SAP-AG, C=DE
    Signature Algorithm: SHA1withRSA, OID = 1.2.840.113549.1.1.5
    Key: Sun RSA public key, 1024 bits
    modulus: 171871587533146191561538456391418351861663300588728159334223437391061141885590024223283480319626015611710315581642512941578588886825766256507714725820048129123720143461110410353346492039350478625370269565346566901446816729164309038944197418238814947654954590754593726047828813400082450341775203029183105860831
    public exponent: 65537
    Validity: [From: Mon Jan 24 18:17:49 IST 2011,
                   To: Wed Jan 23 18:17:49 IST 2013]
    Issuer: CN=SSO_CA, O=SAP-AG, C=DE
    SerialNumber: [    4d12c509 00000005 eb85]
    Certificate Extensions: 6
    [1]: ObjectId: 2.5.29.14 Criticality=false
    SubjectKeyIdentifier [
    KeyIdentifier [
    0000: 07 E5 83 A1 B2 B7 DF 6B 4B 67 9C 1D 42 C9 0D F4 .......kKg..B...
    0010: 35 76 D3 F7 5v..
    [2]: ObjectId: 2.5.29.35 Criticality=false
    AuthorityKeyIdentifier [
    KeyIdentifier [
    0000: E4 C4 2C 93 20 AF DA 4C F2 53 68 4A C0 E7 EC 30 ..,. ..L.ShJ...0
    0010: 8C 0C 3B 9A ..;.
    [3]: ObjectId: 1.3.6.1.4.1.311.21.7 Criticality=false
    Extension unknown: DER encoded OCTET string =
    0000: 04 30 30 2E 06 26 2B 06 01 04 01 82 37 15 08 82 .00..&+.....7...
    0010: D1 E1 73 84 E4 FE 0B 84 FD 8B 15 83 E5 90 1B 83 ..s.............
    0020: E6 A1 43 81 62 84 B1 DA 50 9E D3 14 02 01 64 02 ..C.b...P.....d.
    0030: 01 1B ..
    [4]: ObjectId: 2.5.29.17 Criticality=false
    SubjectAlternativeName [
    RFC822Name: [email protected]
    [5]: ObjectId: 2.5.29.15 Criticality=true
    KeyUsage [
    DigitalSignature
    Non_repudiation
    Key_Encipherment
    Data_Encipherment
    [6]: ObjectId: 2.5.29.19 Criticality=true
    BasicConstraints:[
    CA:false
    PathLen: undefined
    Algorithm: [SHA1withRSA]
    Signature:
    0000: B3 C5 92 66 8D D7 ED 6D 51 12 63 CC F4 52 18 B9 ...f...mQ.c..R..
    0010: B8 A6 78 F7 ED 7D 78 18 DA 71 09 C9 AE C8 49 23 ..x...x..q....I#
    0020: F5 32 2F 0F D1 C0 4C 08 2B 6D 3C 11 B9 5F 5B B5 .2/...L.+m<.._[.
    0030: 05 D9 CA E6 F9 0A 94 14 E7 C6 7A DB 63 FE E5 EC ..........z.c...
    0040: 48 94 8C 0D 77 92 59 DE 34 6E 77 1A 24 FE E3 C1 H...w.Y.4nw.$...
    0050: D8 0B 52 6A 7E 22 13 71 D7 F8 AF D1 17 C8 64 4F ..Rj.".q......dO
    0060: 83 EA 2D 6A CA 7F C3 84 37 15 FE 99 73 1D 7C D1 ..-j....7...s...
    0070: 6D B4 99 09 62 B9 0F 18 33 4C C6 66 7A 9F C0 DB m...b...3L.fz...
    No of certificates found from Personal MS Keystore: 1
    Exception in thread "main" java.security.InvalidKeyException: Unsupported key type: Sun RSA public key, 1024 bits
    modulus: 171871587533146191561538456391418351861663300588728159334223437391061141885590024223283480319626015611710315581642512941578588886825766256507714725820048129123720143461110410353346492039350478625370269565346566901446816729164309038944197418238814947654954590754593726047828813400082450341775203029183105860831
    public exponent: 65537
         at sun.security.mscapi.RSACipher.init(RSACipher.java:176)
         at sun.security.mscapi.RSACipher.engineInit(RSACipher.java:129)
         at javax.crypto.Cipher.init(DashoA13*..)
         at javax.crypto.Cipher.init(DashoA13*..)
         at com.sap.srm.crpto.client.applet.CryptoClass.main(CryptoClass.java:102)
    Edited by: sabre150 on 18-Jul-2011 03:47
    Added [ code] tags to make code readable.

    A bit of research indicates that the classes of the keys obtained by
                          RSAPubKey = c.getPublicKey();
                               RSAPrivKey = ks.getKey(aliasKey, null);  //"mypassword".toCharArray()are sun.security.rsa.RSAPublicKeyImpl and sun.security.*mscapi*.RSAPrivateKey . It seems that for Cipher objects from the SunMSCAPI provider cannot accept RSA public keys of class sun.security.rsa.RSAPublicKeyImpl and that the SunMSCAPI will only accept RSA private keys of class sun.security.mscapi.RSAPrivateKey.
    This came up under different guise a couple of years ago. It makes sense since encrypting/wrapping with a public key does not represent a security problem (there is nothing secret in any of the encryption operations) when done outside of MSCAPI so one can use any provider that has the capability BUT the decryption/unwrapping must be done with the SunMSCAPI provider which delegates it to the MSCAPI.
    My working test code based on your code implementing this approach is :
            // RSA 1024 bits Asymmetric encryption of Symmetric AES key             
            // List the certificates from Microsoft KeyStore using SunMSCAPI.
            System.out.println("List of certificates found in Microsoft Personal Keystore:");
            KeyStore ks = KeyStore.getInstance("Windows-MY", "SunMSCAPI");
            ks.load(null, null);
            Enumeration en = ks.aliases();
            PublicKey RSAPubKey = null;
            Key RSAPrivKey = null;
            int i = 0;
            while (en.hasMoreElements())
                String aliasKey = (String) en.nextElement();
                X509Certificate c = (X509Certificate) ks.getCertificate(aliasKey);
                String sss = ks.getCertificateAlias(c);
                if (sss.equals("rsa_key")) // The alias for my key - make sure you change it back to your alias
                    System.out.println("---> alias : " + sss);
                    i = i + 1;
                    String str = c.toString();
                    System.out.println(" Certificate details : " + str);
                    RSAPubKey = c.getPublicKey();
             System.out.println(RSAPubKey.getClass().getName());
                   RSAPrivKey = ks.getKey(aliasKey, null);  //"mypassword".toCharArray()
            System.out.println(RSAPrivKey.getClass().getName());
                    Certificate[] chain = ks.getCertificateChain(aliasKey);
            System.out.println(ks.getProvider().getName());
            System.out.println("No of certificates found from Personal MS Keystore: " + i);
            Cipher rsaCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");//, ks.getProvider().getName());       !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
                rsaCipher.init(Cipher.WRAP_MODE, RSAPubKey);
            byte[] keyBytes =
                1, 2, 3, 4, 5, 6, 7, 8, 2, 3, 4, 5, 6, 7, 8, 9
            SecretKey aeskey = new SecretKeySpec(keyBytes, "AES");
            byte[] encryptedSymmKey = rsaCipher.wrap(aeskey);
            System.out.println("Encrypted Symmetric Key :" + Arrays.toString(encryptedSymmKey));
            System.out.println("Encrypted Symmetric Key Length in Bytes: " + encryptedSymmKey.length);
            // RSA Decryption of Encrypted Symmetric AES key
            Cipher unwrapRsaCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding", ks.getProvider().getName());       //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
            unwrapRsaCipher.init(Cipher.UNWRAP_MODE, RSAPrivKey);
            Key decryptedKey = unwrapRsaCipher.unwrap(encryptedSymmKey, "AES", Cipher.SECRET_KEY);
            System.out.println("Decrypted Symmetric Key :" + Arrays.toString(decryptedKey.getEncoded())); // Matches the 'keyBytes' above

  • Please help I am stuck at "not a DSA public key"

    Hi
    I am just starting with the certificate/security API so this may be a naive question. I have a certificate,private key signature & data from a third-party. I am using following program to verify the signature.
    import java.io.*;
    import java.security.*;
    import java.security.cert.CertificateFactory;
    import java.security.cert.X509Certificate;
    import java.security.spec.*;
    import java.util.Collection;
    import java.util.Iterator;
    class VerSig {
        public static void main(String[] args) {
            /* Verify a DSA signature */
            if (args.length != 3) {
                System.out.println("Usage: VerSig publickeyfile signaturefile datafile");
            else try{
                InputStream inStream = new FileInputStream(args[0]);
                CertificateFactory cf = CertificateFactory.getInstance("X.509");
                Collection c = cf.generateCertificates(inStream);
                Iterator i = c.iterator();
                X509Certificate cert = null;
                while (i.hasNext()) {
                    cert = (X509Certificate)i.next();
                inStream.close();
                PublicKey pubKey = null;
                if (cert != null)
                    pubKey = cert.getPublicKey();
                // create a Signature object and initialize it with the public key
                Signature sig = Signature.getInstance("SHA1withDSA","SUN");
                sig.initVerify(pubKey);
                // Update and verify the data
                FileInputStream datafis = new FileInputStream(args[2]);
                BufferedInputStream bufin = new BufferedInputStream(datafis);
                byte[] buffer = new byte[1024];
                int len;
                while (bufin.available() != 0) {
                    len = bufin.read(buffer);
                    sig.update(buffer, 0, len);
                bufin.close();
                //input the signature bytes
                FileInputStream sigfis = new FileInputStream(args[1]);
                byte[] sigToVerify = new byte[sigfis.available()];
                sigfis.read(sigToVerify );
                sigfis.close();
                boolean verifies = sig.verify(sigToVerify);
                System.out.println("signature verifies: " + verifies);
            } catch (Exception e) {
                System.err.println("Caught exception " + e.toString());
    } First of all :
    1) I wrote "Signature sig = Signature.getInstance("SHA1withDSA","SUN");" because somewhere in the certificate, I saw Signature Algorithm: SHA1withDSA. Is this correct?
    2)I am getting following exception after
    Signature sig = Signature.getInstance("SHA1withDSA","SUN");"
    sig.initVerify(pubKey);
    Caught exception java.security.InvalidKeyException: not a DSA public key: algorithm = SHA1withDSA, params unparsed, unparsed keybits =
    0000: 02 41 00 91 89 17 2D 83 2D 19 51 96 8F D3 A7 CE .A....-.-.Q.....
    0010: 33 E7 B0 1F 6C 79 F4 91 3E B5 5E 81 92 42 65 BA 3...ly..>.^..Be.
    0020: 56 F8 8B F4 FF 54 4F D6 ED 38 A4 71 BD BE D4 69 V....TO..8.q...i
    0030: 21 02 E3 CD 48 96 BC B3 14 F4 42 90 4D 38 5C 78 !...H.....B.M8\x
    0040: D3 26 58 .&X
    what am I doing wrong?

    Hi,
    I am getting the same issue using JDK 1.4.2 regarding the "not a DSA public key" error.
    I also tried using Bouncy Castle instead, but also fail at the verify step (although with a slightly different error):
    "java.security.NoSuchAlgorithmException: no such algorithm: SHA
    1with1.3.14.3.2.27 for provider BC"
    My initial attempt using the Sun classes looks very much like the original example above. My Bouncy Castle implementation looks like:
    Provider bc = new BouncyCastleProvider();
    Security.insertProviderAt( bc, 1 );
    try
    // read PKCS#7 data from input stream
    CMSSignedData sig = new CMSSignedData( request.getInputStream() );
    CertStore certs = sig.getCertificatesAndCRLs( "Collection", "BC" );
    SignerInformationStore signers = sig.getSignerInfos();
    Collection c = signers.getSigners();
    Iterator it = c.iterator();
    while (it.hasNext())
    SignerInformation signer = (SignerInformation)it.next();
    Collection certCollection = certs.getCertificates( signer.getSID() );
    Iterator certIt = certCollection.iterator();
    X509Certificate cert = (X509Certificate)certIt.next();
    logger.debug( "Cert = " + cert );
    logger.debug( "Cert Sig Alg = " + cert.getSigAlgName() );
    logger.debug( "Pub Key Alg = " + cert.getPublicKey().getAlgorithm() );
    if ( signer.verify( cert, "BC" ) )
    logger.debug( "Verified!" );
    else
    logger.debug( "Not verified." );
    catch( Exception e )
    e.printStackTrace();
    return e.getMessage();
    and provides the following output:
    2006-04-26 14:06:46,882 - Cert =
    [0] Version: 1
    SerialNumber: 0
    IssuerDN: CN=ID3
    Start Date: Tue Sep 30 20:00:00 EDT 1997
    Final Date: Thu Dec 31 19:00:00 EST 2037
    SubjectDN: CN=ID3
    Public Key: DSA Public Key
    y: 9189172d832d1951968fd3a7ce33e7b01f6c79f4913eb55e81924265ba56f88bf4ff544fd6ed38a471bdbed4692102e3cd4896bcb314f442904d385c78d32658
    Signature Algorithm: SHA1withDSA
    Signature: 302c0214163774149d7a9ac672aa6beb0af7c5b1
    bee965be02144c9bf7da70a24dc644f788a8096e
    9ed1f1777741
    2006-04-26 14:06:46,882 - Cert Sig Alg = SHA1withDSA
    2006-04-26 14:06:46,882 - Pub Key Alg = DSA
    06/04/26 14:06:46 java.security.NoSuchAlgorithmException: no such algorithm: SHA
    1with1.3.14.3.2.27 for provider BC
    06/04/26 14:06:46 at java.security.Security.getEngineClassName(Security.java:723)
    06/04/26 14:06:46 at java.security.Security.getEngineClassName(Security.java:693)
    06/04/26 14:06:46 at java.security.Security.getImpl(Security.java:1132)
    06/04/26 14:06:46 at java.security.Signature.getInstance(Signature.java:218)
    06/04/26 14:06:46 at org.bouncycastle.cms.CMSSignedHelper.getSignatureInst
    ance(CMSSignedHelper.java:171)
    06/04/26 14:06:46 at org.bouncycastle.cms.SignerInformation.doVerify(Signe
    rInformation.java:261)
    06/04/26 14:06:46 at org.bouncycastle.cms.SignerInformation.verify(SignerInformation.java:494)
    ...truncated...
    I see that the original post is quite old. Was anyone able to figure out the issue? What am I missing?
    Thanks,
    Brian

  • When trying to attach my key, the 'Attach My Public Key' option is blanked out so I can't use it.

    This is referring to 'Digitally Signing and Encrypting Messages'. When trying to send my key by email, the 'Attach My Public Key' option is blanked out so I can't use it. I have a work around but it is a bit of a nuisance.
    Any ideas?
    Many thanks
    Kevin

    Hello christ1,
    Thanks for getting in touch.
    PNG screenshot attached.
    Kevin

  • How to find modulus(n) and public key exponent(e)Sor

    I did the following code:
    import java.security.*;
    class keypair
    public static void main(String args[])
    try {
            KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA");
            keyGen.initialize(1024);
            KeyPair keypair = keyGen.genKeyPair();
            PrivateKey privateKey = keypair.getPrivate();
            PublicKey publicKey = keypair.getPublic();
            System.out.println(publicKey);
    catch (java.security.NoSuchAlgorithmException e) {
    }It produced the following output:
    E:\java>java keypair
    Sun RSA public key, 1024 bits
    modulus: 104598424699919432698042124865237006532583108525971624656815039032375
    *68185931249899603942873174007833898125332457427834491991685017307342129730049040*
    *85039266578793603162921901877391682504673766949037045217194339504369288262569809*
    *64618725280325930282787918761626276736975012559809247463223114702205350103039131*
    public exponent: 65537
    How to parse modulus(n) and public exponent(e) from this output?
    Similarly when i print private key, it produces the following output:
    E:\java>java keypair
    Sun RSA private CRT key, 1024 bits
    modulus:          124578817060208658480856678950235831207402457067036419284514
    *60119309486714863949162442643168408523979997168613499493638925829235693238993015*
    *36861462235708805467117179894466762970147852286192228334073408407380525883650965*
    *26200137024900438305422984852314541271126647102071346646999343089444655087519613*
    *147762713*
    public exponent:  65537
    private exponent: 938527844532658207604152892230342202756165450473898580852699
    *91069268853864683730106242370135012901790500054313488639918623825755509450966957*
    *25996151023641565209086629652161258725723528561744214714448113895688480371394495*
    *69970533766968335232379493089928062691491508442909468663624841001227918721233934*
    *90451285*
    prime p:          128112715803862066344339615342766575233634768887073748611821
    *70613165835421234259251719401979554816266892921739504796026180704477109334458578*
    *924582228715587*
    prime q:          972415706579323990162180646771186062588725555167352041581263
    *11833654947284058644791019214876691698044764118648637510099163830088827138987158*
    *06445271350899*
    prime exponent p: 102053075991522697645186596252261651077210381075096084960080
    *01572103324900452503753532555651687424478224695551102238145517644352533224205327*
    *850477437666141*
    prime exponent q: 668659136319899226645386130685620335239039277715133737489656
    *56694442226518700929665796129185316864860876985624927131126216000167126890435269*
    *81971346772483*
    crt coefficient:  337801534982286124613379128447816812903646302193598735486466
    *78634104811105616496519276355880320340688935923186965279527763125244878069735173*
    *60542121091569*
    E:\java>
    From this output how to parse n and d, where d is the secret exponent or decryption exponent? Thanks in advance. Apologies, for posting in this forum instead of cryptography forum.
    Edited by: sowndar on Nov 28, 2009 3:12 AM

    sowndar wrote:
    From this output how to parse n and d, where d is the secret exponent or decryption exponent? Why do you think you need to parse anything? Why do you need the modulus and exponents?
    P.S. Extract the public and private keys from the key pair, cast them to RSAPublicKey and RSAPrivateKey as appropriate then look at the methods of classes RSAPublicKey and RSAPrivateKey to see how to get modulus and exponents.

  • In SSL programming what is mean by Public key-pls explain

    In SSL programming what is mean by Public key-pls explain

    Hello Nivas,
    Public Key + Private Key "must pair together to be able to encrypt/decrypt
    Private Key used to decrypt the message.
    Public Key : used to encrypt the message, distributed freely to everyone
    Private Key : kept secret on the machine so that only the owner can decrypt
    the message, used to decrypt his public friends encrypted message.
    You will find more details at :
    http://e-docs.bea.com/wls/docs60////security/concepts.html
    Ludovic.
    "nivas" <[email protected]> a écrit dans le message news:
    3c270b27$[email protected]..
    >
    In SSL programming what is mean by Public key-pls explain

  • Using Public key

    Hi,
    I really apologize for posting this thread which does not belong to this forum but I know someone must have use this in their shell scripting.
    I have to use PUBLIC KEY in my shell script for connecting one server. How do I accomplish this.
    Thanks for great help.

    Is there any source code??
    I can gererate public\private key but i want to decrypt the plain text using a public key .
    Is there any way to generate a secret key "AES" from the public key??
    Regards

  • Java.security.InvalidKeyException: Unsupported key type: SunPKCS11-MyPKCS11

    I am having a very strange issue with my CAC card. I wrote a small Java program to login into ProjectForge.mil webservice
    ICollabNetSoap m_sfSoap = (ICollabNetSoap)
    ClientSoapStubFactory.getSoapStub(ICollabNetSoap.class, "https://project.forge.mil/");
    String sessionId = m_sfSoap.login("", "");
    After entering CAC PIN, it is throwing exception saying that "javax.net.ssl.SSLHandshakeException: Received fatal alert: unsupported_certificate".
    More specific exception is:
    Caused by: java.security.InvalidKeyException: Unsupported key type: SunPKCS11-MyPKCS11 RSA private key, 2048 bits (id 39632224, token object, sensitive, unextractable)
    Note: I have asked three of my co-workers to run the same program using their CAC's and seems to be working fine.
    Only the difference between their CACs and mine is CA(Certificate Authority Value. Their's is 24 and where as mine is 25). It looks like JVM was not able to understand the private key of my CAC.
    On the other note, my CAC cworks fine with web service client application that was written in .Net.
    I am using Jdk-1.6.0_26 and I have already downloaded and installed latest jce .jar files.
    Any help is greatly appreciated
    Here are the exception details:
    =======================================
    [java] Tue Aug 02 17:07:54 MST 2011 URL assignment worked
    [java] Tue Aug 02 17:07:54 MST 2011 Trying login...
    [java] Exception in thread "main" AxisFault
    [java] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    [java] faultSubcode:
    [java] faultString: javax.net.ssl.SSLHandshakeException: Received fatal alert: unsupported_certificate
    [java] faultActor:
    [java] faultNode:
    [java] faultDetail:
    [java] {http://xml.apache.org/axis/}stackTrace:javax.net.ssl.SSLHandshakeException: Received fatal alert: unsupported_certificate
    [java] at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
    [java] at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1720)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1149)
    [java] at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
    [java] at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
    [java] at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
    [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
    [java] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    [java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    [java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    [java] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    [java] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    [java] at org.apache.axis.client.Call.invoke(Call.java:2767)
    [java] at org.apache.axis.client.Call.invoke(Call.java:2443)
    [java] at org.apache.axis.client.Call.invoke(Call.java:2366)
    [java] at org.apache.axis.client.Call.invoke(Call.java:1812)
    [java] at com.collabnet.ce.soap50.webservices.cemain.CollabNetSoapStub.login(CollabNetSoapStub.java:115)
    [java] at com.collab.examples.LoginTF.main(LoginTF.java:30)
    [java] {http://xml.apache.org/axis/}hostname:GDYL8420N5B
    [java] javax.net.ssl.SSLHandshakeException: Received fatal alert: unsupported_certificate
    [java] at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
    [java] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
    [java] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
    [java] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
    [java] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
    [java] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
    [java] at org.apache.axis.client.Call.invoke(Call.java:2767)
    [java] at org.apache.axis.client.Call.invoke(Call.java:2443)
    [java] at org.apache.axis.client.Call.invoke(Call.java:2366)
    [java] at org.apache.axis.client.Call.invoke(Call.java:1812)
    [java] at com.collabnet.ce.soap50.webservices.cemain.CollabNetSoapStub.login(CollabNetSoapStub.java:115)
    [java] at com.collab.examples.LoginTF.main(LoginTF.java:30)
    [java] Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: unsupported_certificate
    [java] at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
    [java] at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1720)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:954)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1138)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1165)
    [java] at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1149)
    [java] at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:186)
    [java] at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
    [java] at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
    [java] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
    [java] ... 11 more
    [java] Java Result: 1
    ==================================================================
    I have captured more specific exception which says
    Caused by: java.security.InvalidKeyException: Unsupported key type: SunPKCS11-MyPKCS11 RSA private key, 2048 bits (id 39632224, token object, sensitive, unextractable)

    Thanks, I have installed OpenSSL.
    Here is the PEM copy of my certificate
    ==================================================
    -----BEGIN CERTIFICATE-----
    MIIElTCCA32gAwIBAgIDG5RgMA0GCSqGSIb3DQEBBQUAMFcxCzAJBgNVBAYTAlVT
    MRgwFgYDVQQKEw9VLlMuIEdvdmVybm1lbnQxDDAKBgNVBAsTA0RvRDEMMAoGA1UE
    CxMDUEtJMRIwEAYDVQQDEwlET0QgQ0EtMjUwHhcNMTEwMzI1MDAwMDAwWhcNMTIw
    NTI4MjM1OTU5WjCBjDELMAkGA1UEBhMCVVMxGDAWBgNVBAoTD1UuUy4gR292ZXJu
    bWVudDEMMAoGA1UECxMDRG9EMQwwCgYDVQQLEwNQS0kxEzARBgNVBAsTCkNPTlRS
    QUNUT1IxMjAwBgNVBAMTKVlBUlJBUFVSRUREWS5TT01BU0VLSEFSQS5SRUREWS4x
    Mzg2Nzc5MDM4MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArPjzB0Lk
    FAMegXbka3944sAm2jq7qKGnpIYhL82/gAj7zJzAPJsoE66L9spiEoDfh0osy2pO
    wqH/0NfQdGjgIGjDG2OrKhTxYXBqKZk2p7V84H4RK5duB8JU7B7R7uY+U9RkyiNd
    YuSycGXKULGa5eow/OCCI3iN8A+4NjpvswKhw3WvWhDow4xl1x6E6I89RhscU78z
    D6VtamidLK8mCWDihplmSFtCCCK5RsUjv/KuZcASAHe3Tb7di2Fb68liS5Yhf5v7
    SrezRYHbHpAZMOImy74t1UzcGkHFkE5kO4SPbAcVyhMwzE3aZNubXl5biQCEmxqh
    80HvckcQj+b5TwIDAQABo4IBMjCCAS4wHwYDVR0jBBgwFoAULgtl+dZl3kujJXWk
    oS6FIUBzuQowNQYDVR0fBC4wLDAqoCigJoYkaHR0cDovL2NybC5kaXNhLm1pbC9j
    cmwvRE9EQ0FfMjUuY3JsMA4GA1UdDwEB/wQEAwIGwDAjBgNVHSAEHDAaMAsGCWCG
    SAFlAgELCTALBglghkgBZQIBCxMwHQYDVR0OBBYEFFhzyfk4PpY2JzyrNAH+ka4n
    MDLRMGMGCCsGAQUFBwEBBFcwVTAxBggrBgEFBQcwAoYlaHR0cDovL2NybC5kaXNh
    Lm1pbC9zaWduL0RPRENBXzI1LmNlcjAgBggrBgEFBQcwAYYUaHR0cDovL29jc3Au
    ZGlzYS5taWwwGwYDVR0JBBQwEjAQBggrBgEFBQcJBDEEEwJVUzANBgkqhkiG9w0B
    AQUFAAOCAQEATpknlaaGiKZRNL+8YNgVy2kQDEFgdg/O4tB7NBRq3PiyUodnpOur
    2WbML+ViDMv7IxKEKUGnOgpc9CRNCR3+NERmaeVShlQwfF/3PjZ/DWiSuSMD79qC
    Y+tom4AkV69kLKl/O07Ql+jYh+Uy1x+MGWm46QsdOU5kwXHvPrgBI+5IpOrhXAW9
    DmOfTbdpmQvQHBC8nnLscrolQutLQtOIN60mRZmJG1x762sGNQsFgO8fTOus+C8v
    rlGafWRi/BJxlQCB3qb5nvI1TI68DLlqvgvX8IR7fpL/tq222PDAorpGf23YpSQt
    9x1xD5aZLkgYIICa6/L1Yus9FjtCR6eHug==
    -----END CERTIFICATE-----
    =======================================================

  • When trying to download itunes I get this error message  An error occurred during Installation of Assembly " Microsoft VC80CRT type=win32".version "8.0.50727.4053", public key token =1fc8b3b9a1e18e3b"processor Architecture="AMD64", please advise

    When trying to download itunes I get this error message.  An errr occurred during installation of assemby " Microsoft VC80CRT type=wind32" vversion "8.9.50727.4054, public key token=1fc8b9a1e3b"processor Architecture="AMD64"  Please advise

    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? (For example, 8007000B.)

  • I had to reinstall my itunes, and it wont reinstall, instead saying there was "an error occurred during the installation of assembly microsoft.vc80.crt.type = win32 version 8.0.50727 6195 public key token 1fc8b3b9a1e18e3b processorarchitecture = x86.

    i had to reinstall my itunes, and it wont reinstall, instead saying there was "an error occurred during the installation of assembly microsoft.vc80.crt.type = win32 version 8.0.50727 6195 public key token 1fc8b3b9a1e18e3b processorarchitecture = x86.
    I have taken all apple products off my computer per other suggestions, I have run malwarebytes with no viruses found, and have even tried installing itunes as a different user on my computer but get the same message everytime.

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • I am unable to install Itunes on Windows 7 as I am getting the message "an error occured during the installation of assembly "Microsoft VC80.CRT Type ="win32" version="8.0.50727.6195",public key token 1fc8b 3b 9a 1e 18e 3b",processorArchitecture="x86".Ple

    I am unable to install Itunes on Windows 7 as I am getting the message "an error occured during the installation of assembly "Microsoft VC80.CRT Type ="win32" version="8.0.50727.6195”,public key token 1fc8b 3b 9a 1e 18e 3b”,processorArchitecture=”x86”.Please refer to Help and Support for more information:"HResult 0x800736FD

    I found htis other post https://discussions.apple.com/thread/3401328?start=0&tstart=0
    I also found this in another post
    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? (For example, 8007000B.)

  • I am unable to install Itunes on Windows 7 as I am getting the message "an error occured during the installation of assembly "Microsoft VC80.CRT Type ="win32" version="8.0.50727.4053,public key token....."HResult 0X8007054f

    I am unable to install Itunes on Windows 7 as I am getting the message "an error occured during the installation of assembly "Microsoft VC80.CRT Type ="win32" version="8.0.50727.4053,public key token....."HResult 0X8007054f

    I found htis other post https://discussions.apple.com/thread/3401328?start=0&tstart=0
    I also found this in another post
    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? (For example, 8007000B.)

  • HT1926 Can't download iTunes on my laptop receive following error message- an error occurred during the installation of assembly Microsoft vc80.CRT.type="win32", version 8.0.50727. 6195 public key token= ifc8b3b9a1e18e3b process architecture=x86hresult:00

    Can't download iTunes on my laptop receive following error message- an error occurred during the installation of assembly Microsoft vc80.CRT.type="win32", version 8.0.50727. 6195 public key token= ifc8b3b9a1e18e3b process architecture=x86hresult:0073

    These ones are typically caused by underlying problems on the PC that also often cause Windows Updates to fail to install. If we can fix the Windows Update trouble, we can usually get the iTunes trouble cleaned up en passant.
    Go into your Windows update and try to check for new updates. If updates install, stock up on the ones you're behind on, restarting the PC if requested to do so. After the restart, try installing iTunes again. Does it go through this time for you?
    If windows updates fail to install, go into your Update History and doubleclick the failures. What alphanumeric codes appear for you? (For example, 8007000B.)

  • When I try to download the newest version of iTunes, I get the message : "An error occured during the installation of assembly "policy 8.0 Microsoft VC80.CRT type= "win32-policy".version="8.0.50727.6195.public Key Token="1fc8b3b9a1e18e3b.processorArchitct

    When I try to download the newest version of iTunes, I get the message : "An error occured during the installation of assembly "policy 8.0 Microsoft VC80.CRT type= "win32-policy".version="8.0.50727.6195.public Key Token="1fc8b3b9a1e18e3b.processorArchitecture = "x86" Please refer to help and support.
    Ok I cant find a way to fix this so I basically cant use my Verizon Iphone 4 because it wont connect on an old version...

    OK.  You may have to reinstall everything from scratch but follow following steps:
    1. Go to Microsoft website to fix install and Unistall problems. Click "Run now" from Fix it to remove all iTunes & related installer files:
    http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Be aware that Windows Installer CleanUp Utility will not remove the actual program from your computer. However, it will remove the installation files so that you can start the installation, upgrade, or uninstall over.
    2. You should remove all instances of iTunes and the rest of the components listed below:
    it may be necessary to remove all traces of iTunes, QuickTime, and related software components from your computer before reinstalling iTunes.
    Use the Control Panel to uninstall iTunes and related software components in the following order:
    iTunes
    QuickTime
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Follow the instructions from Apple article listed here: http://support.apple.com/kb/HT1923 to remove all components
    3. Reboot your computer. Next, download iTunes from here:http://www.apple.com/itunes/download/ and install from scratch

  • I cant install iTunes to my Sony laptop i have error  occurred during the installation of assembly 'Microsoft .VC8O.CRT.type =win32" .version "8.050727.6195" .public key token="1fc8b9a1e18e3b".processorArchitecture="X86"" . please refer to help and s

    i cant install iTunes to my Sony laptop i have this message
    error  occurred during the installation of assembly 'Microsoft .VC8O.CRT.type =win32" .version "8.050727.6195" .public key token="1fc8b9a1e18e3b".processorArchitecture="X86"" . please refer to help and supp 

    error  occurred during the installation of assembly
    'Microsoft .VC8O.CRT.type =win32" .version "8.050727
    .6195" .public key token="1fc8b9a1e18e3b".processo
    rArchitecture="X86"" . please refer to help and support for more information . HRESULT:0x80070005

Maybe you are looking for

  • Weirdness when trying to use javascript to submit a button on a jsf page

    code in question: document.forms['logoutForm'].elements['logoutForm:_id7'].click(); alert("button clicked"); This works fine as is, the form gets submitted. I have to use this because there are multiple submits in this form for different things. Edit

  • Canada - Bank transit number - routing code

    hello! I am working in a Belgian company using ECC 6.0 and I have to pay a vendor which is in Canada. My bank told me i have to add the Canadian routing number (in French : code de transit) before the bank account. But in SAP, i dont know where shoul

  • HT5706 how to get TV and comp working

    trying to get the UTube working on my TV and other things...

  • How Can i know the orders source. ?? IDOC or VA01

    Dear All, sometimes we create a new order with reference to the order which was created by using IDOC. How can I know the difference between .. 1) Order created with VA01. (Some of the fields may copied from order created by IDoc.) 2) orders created

  • Public google calendar changes not showing on Pre

    I set up a google account for myself and for my wife.  I shared my calendar info with my wife.  On her google account, I added my calendar and a public calendar from my kid's school.  If I make a change to my calendar the change shows up in google on