
แชร์ประสบการณ์ Config ตัว Amazon ElastiCache ให้ใช้งานกับ Spring Boot
Story 2 - 3 วันที่ผ่านมาพยายามต่อ Redis บน ElastiCache แล้ว Error ตลอดเวลาเรียกใช้ จะมี Log ขึ้นประมาณข้างล่างนี้ แล้วแก้จนมันใช้ได้แล้วเอาขึ้น Server ไปละ นี่คือเรื่องของมัน org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis; nested exception is io.lettuce.core.RedisConnectionException: Unable to connect to ███████-cache.███████.com:6379 Caused by: io.lettuce.core.RedisConnectionException: Unable to connect to ███████-cache.███████.com:6379 e Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem Caused by: java.security.cert.CertificateException: No subject alternative DNS name matching ███████-cache.███████.com found. สันนิษฐานแรกคือน่าจะเกี่ยวกับ In-Transit Encryption feature ของ ElastiCache’s Redis ซึ่งถูกเลือกไว้แล้ว แล้วหลังจาก Research ไปซักระยะเลยเจอว่า ElastiCache’s Redis allow ให้ Connect ผ่าน VPC เท่านั้น ...








