[ 
https://issues.apache.org/jira/browse/JCLOUDS-433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13995117#comment-13995117
 ] 

Ignasi Barrera commented on JCLOUDS-433:
----------------------------------------

The issue can be easily bypassed by delegating the authentication to the 
ssh-agent, and providing a {{LoginCredentials}} without any password or 
privatekey populated.

> 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
>            Priority: Minor
>
> 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.2#6252)

Reply via email to