private String pem2der(String fileName) throws EC2Exception {
String derFile;
byte[] bytes;
try {
bytes = new PKCS1().readDecodedBytes(fileName);
} catch (IOException e) {
String msg = "Cannot read decoded bytes";
log.error(msg, e);
throw new EC2Exception(msg, e);
}