Docs: setup HW entropy for TLS
See original GitHub issueSometimes at boot time happens this error in connection to crossbar (wss://). But after boot if I try to restart my service, it works fine.
Autobahn v18.10.1 Python 3.5.3
2018-11-22 16:10:41.398 474 INFO autobahn.asyncio.component.Component [-] connecting once using transport type "websocket" over endpoint "tcp"
2018-11-22 16:10:41.408 474 ERROR asyncio [-] Fatal error on SSL transport
protocol: <asyncio.sslproto.SSLProtocol object at 0x755234f0>
transport: <_SelectorSocketTransport closing fd=8 read=idle write=<idle, bufsize=0>>: ssl.SSLError: getrandom() initialization failed. (_ssl.c:720)
2018-11-22 16:10:41.408 474 ERROR asyncio Traceback (most recent call last):
2018-11-22 16:10:41.408 474 ERROR asyncio File "/usr/lib/python3.5/asyncio/sslproto.py", line 635, in _process_write_backlog
2018-11-22 16:10:41.408 474 ERROR asyncio self._on_handshake_complete)
2018-11-22 16:10:41.408 474 ERROR asyncio File "/usr/lib/python3.5/asyncio/sslproto.py", line 135, in do_handshake
2018-11-22 16:10:41.408 474 ERROR asyncio ssldata, appdata = self.feed_ssldata(b'', only_handshake=True)
2018-11-22 16:10:41.408 474 ERROR asyncio File "/usr/lib/python3.5/asyncio/sslproto.py", line 201, in feed_ssldata
2018-11-22 16:10:41.408 474 ERROR asyncio self._sslobj.do_handshake()
2018-11-22 16:10:41.408 474 ERROR asyncio File "/usr/lib/python3.5/ssl.py", line 641, in do_handshake
2018-11-22 16:10:41.408 474 ERROR asyncio self._sslobj.do_handshake()
2018-11-22 16:10:41.408 474 ERROR asyncio ssl.SSLError: getrandom() initialization failed. (_ssl.c:720)
2018-11-22 16:10:41.408 474 ERROR asyncio
2018-11-22 16:10:41.418 474 INFO autobahn.asyncio.component.Component [-] Connection failed: SSLError: getrandom() initialization failed. (_ssl.c:720)
Any suggestion?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Porting the non-volatile (NV) seed — Mbed TLS documentation
This feature can be used in addition to a hardware entropy source as well, however, it is not mandatory as the hardware entropy...
Read more >Entropy sources - Porting | Mbed OS 6 Documentation
How to add an entropy source · Implement the functions declared in hal/trng_api.h to let Mbed TLS access the device's entropy source. ·...
Read more >How to Setup Additional Entropy for Cloud Servers Using ...
For example, let's say you have a cloud server running the following daemons (all using SSL/TLS or block ciphers):. Web Server; Incoming/ ...
Read more >Managing system entropy - PingAuthorize - 9.1 - Documentation
Some environments with low entropy might experience intermittent performance issues with SSL-based communication, such as certificate generation. This scenario ...
Read more >Handling of Random Number Generation and Validation ... - IBM
Random Number Generation (RNG) in z/VM® is handled at the hardware level, ... Validating the entropy used by the z/VM TLS Server requires...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me, simply installing
rng-tools
resolved the issue.sudo apt-get install rng-tools
thanks for reporting back! we’ll add it to the docs (hence I reopen this issue)