Skip to content

Instantly share code, notes, and snippets.

@nickscript0
nickscript0 / letsencrypt_security.md
Last active February 4, 2018 00:22
Let's Encrypt Cert and Key Security information
  • Why it's acceptable for Let's Encrypt's root to be sha-1 signed and why root certificates are exempt from SHA1 sunsetting: https://community.letsencrypt.org/t/sha-1-signed-certificate-in-chain/24897/2
  • Currently Let’s Encrypt only signs end-entity certificates with RSA intermediates. Let’s Encrypt will generate an ECDSA root and intermediates [in the future] which can be used to sign end-entity certificates [ref].
    • The benefit of an ECDSA authentication key (over RSA) is speed.
    • RSA don't scale very well as you increase bit size compared to ECDSA [ref: Section 1.1]
  • You should only support suites that use ECDHE and DHE as they offer Perfect Forward Secrecy. How to read a cipher suite [ref]:
    TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
    ---------------------------------------
    TLS -
    
@nickscript0
nickscript0 / crypto-bruteforce-estimates.md
Last active January 28, 2018 17:53
Security level of modern encryption algorithms

Keybase proof

I hereby claim:

  • I am nickscript0 on github.
  • I am nickscript0 (https://keybase.io/nickscript0) on keybase.
  • I have a public key ASDVmINbkT5Bkt1i6E5r2EFd9lcvw7R9OTQbq6dhikhBwAo

To claim this, I am signing this object:

@nickscript0
nickscript0 / async_hello_world.py
Last active November 6, 2015 13:36
TypeError with async await syntax compared to equivalent @asyncio.coroutine syntax
"""
Was running into the following error with the new async await syntax, where the equivalent @asyncio.coroutine did not give an error.
But this has since resolved, liekly due to an import problem or library version:
...
loop.run_until_complete(hello_world())
File "/usr/local/lib/python3.5/site-packages/asyncio-3.4.3-py3.5.egg/asyncio/base_events.py", line 296, in run_until_complete
future = tasks.async(future, loop=self)
File "/usr/local/lib/python3.5/site-packages/asyncio-3.4.3-py3.5.egg/asyncio/tasks.py", line 516, in async
raise TypeError('A Future or coroutine is required')