change KEY_SIZE from 2048 to 1024 for ubuntu 14