[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7873?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Santhosh Kumar Edukulla closed CLOUDSTACK-7873.
-----------------------------------------------

> SSH keys larger than 1024 bytes are truncated
> ---------------------------------------------
>
>                 Key: CLOUDSTACK-7873
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7873
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>            Reporter: Santhosh Kumar Edukulla
>            Assignee: Santhosh Kumar Edukulla
>
> When we upload the SSH key pair with 8192 bit RSA key, however the length of 
> the public key in that case will be longer than 1024 bytes. In DB table 
> ssh_keypair the length of public_key is set to 5120 bytes which is fine.
> The problematic part is the user vm. In DB table user_vm_details, the value 
> column be set to max 1024 bytes, this also be hard coded into the code as 
> well.
> In case the public key length longer than 1024 bytes, the SSH.PublicKey in 
> user_vm_details table will be truncated, and caused the 
> encryptWithSSHPublicKey return "Error encrypting password" due to the 
> truncated RSA key is invalid.
> Fixed the issue by setting the value to 5120 for key.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to