diff --git a/webrtc/webrtc.nim b/webrtc/webrtc.nim index ccd776f..24dcf1f 100644 --- a/webrtc/webrtc.nim +++ b/webrtc/webrtc.nim @@ -47,3 +47,6 @@ proc accept*( ): Future[DataChannelConnection] {.async: (raises: [CancelledError, WebRtcError]).} = let sctpConn = await self.sctp.accept() result = DataChannelConnection.new(sctpConn, true) + +proc localCertificate(self: WebRTC): seq[byte] = + self.dtls.localCertificate()