You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Ignasi Barrera (JIRA)" <ji...@apache.org> on 2014/01/24 22:40:40 UTC

[jira] [Created] (JCLOUDS-433) Unhandled error when reading RSA private keys with strong encryption

Ignasi Barrera created JCLOUDS-433:
--------------------------------------

             Summary: Unhandled error when reading RSA private keys with strong encryption
                 Key: JCLOUDS-433
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-433
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-core
    Affects Versions: 1.7.0
            Reporter: Ignasi Barrera
            Assignee: Ignasi Barrera


When using the ComputeService to run scripts on a set of nodes and the LoginCredentials are populated with a private key, an unhandled error appears if the key is an RSA key encrypted using strong encryption such as AES.

When the private key is read, the following error appears:

java.lang.IllegalArgumentException: DER length more than 4 bytes: 72
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:120)
	at org.jclouds.crypto.ASN1Codec.readLength(ASN1Codec.java:163)
	at org.jclouds.crypto.ASN1Codec.create(ASN1Codec.java:152)
	at org.jclouds.crypto.ASN1Codec.createASN1Sequence(ASN1Codec.java:86)
	at org.jclouds.crypto.ASN1Codec.decodeRSAPrivateKey(ASN1Codec.java:66)
	at org.jclouds.crypto.Pems$DecodeRSAPrivateCrtKeySpec.parseResult(Pems.java:242)
	at org.jclouds.crypto.Pems$DecodeRSAPrivateCrtKeySpec.parseResult(Pems.java:237)
	at org.jclouds.crypto.Pems$PemProcessor.getResult(Pems.java:102)



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)