I had the same problem and found out that this problem was caused by the length of the certificatename that was exceeding 128 chars.