Re: bouncycastle pskserver error
Peter Dettman <[email protected]> Fri, 3 May 2019 18:31:29 +0700
| Newsgroups | gmane.comp.encryption.bouncy-castle.devel |
|---|---|
| Message-ID | <[email protected]> |
Presumably you need to modify the psk_identity/psk in PSKTlsClientTest
to match the (only) configured PSK for MockPSKTlsServer (see the inner
class MyIdentityManager in MockPSKTlsServer).
PSKTlsClientTest changes (lines 38-39):
String psk_identity = "client";
byte[] psk = new byte[16];
Regards,
Pete Dettman
On 3/5/19 4:29 pm, Sukawanth psr wrote:
> I am trying to write PSKServer to use PSK ciphers in bouncycastle.
>
> Attached is the PSK server we wrote. And we are using
> org.bouncycastle.tls.test.PSKTlsClientTest as client for testing.
>
> I see below error while tls handshake.
>
> I am using 1.6.1 version.
>
> org.bouncycastle.tls.TlsFatalAlert: bad_record_mac(20)