The coffee berry borer, Hypothenemus hampei (Ferrari) (Coleoptera: Curculionidae), is a major destructive insect pest of coffee, which impacts the coffee crops negatively. As a draft genome has been completed for this insect, most molecular studies on gene transcriptional levels under different experimental conditions will be conducted using real-time reverse-transcription quantitative polymerase chain reactions (RT-qPCR). However, the lack of suitable internal reference genes will affect the accuracy of RT-qPCR results. In this study, the expression stability of nine candidate reference genes was evaluated under different developmental stages, temperature stress, and Beauveria bassiana infection. Data analyses were completed by four commonly used programs, BestKeeper, NormFinder, geNorm, and RefFinder. The result showed that RPL3 and EF1α combination were recommended as the most stable reference genes for developmental stages. EF1α and RPS3a combination were the top two stable reference genes for B. bassiana infection. RPS3a and RPL3 combination performed as the optimal reference genes both in temperature stress and all samples. Our results should provide a good foundation for the expression profile analyses of target genes in the future, especially for molecular studies on insect genetic development, temperature adaptability, and immune mechanism to entomogenous fungi in H. hampei.