diff --git a/peyotls-codec.cabal b/peyotls-codec.cabal
--- a/peyotls-codec.cabal
+++ b/peyotls-codec.cabal
@@ -2,7 +2,7 @@
 cabal-version:	>= 1.8
 
 name:		peyotls-codec
-version:	0.3.1.0
+version:	0.3.1.1
 stability:	Experimental
 author:		Yoshikuni Jujo <PAF01143@nifty.ne.jp>
 maintainer:	Yoshikuni Jujo <PAF01143@nifty.ne.jp>
@@ -37,7 +37,7 @@
     build-depends:
         base == 4.*, word24 == 1.0.*, bytestring == 0.10.*, monads-tf == 0.1.*,
         asn1-encoding == 0.9.*, asn1-types == 0.3.*,
-        x509 == 1.5.*, x509-store == 1.5.*,
+        x509 == 1.6.*, x509-store == 1.6.*,
         crypto-pubkey == 0.2.*, crypto-pubkey-types == 0.4.*,
         bytable == 0.1.*
     ghc-options:	-Wall
diff --git a/src/Network/PeyoTLS/Codec.hs b/src/Network/PeyoTLS/Codec.hs
--- a/src/Network/PeyoTLS/Codec.hs
+++ b/src/Network/PeyoTLS/Codec.hs
@@ -233,7 +233,7 @@
 	fromHandshake _ = Nothing
 	toHandshake = HClKeyEx
 
-data Epms = Epms BS.ByteString
+data Epms = Epms BS.ByteString deriving Show
 
 instance HandshakeItem Epms where
 	fromHandshake (HClKeyEx (ClKeyEx cke)) =
