Skip to content

Instantly share code, notes, and snippets.

@Syrup-tan
Syrup-tan / _readme.md
Last active February 15, 2016 22:48
simple acme-tiny sh wrapper

Shell script to generate ssl certificates signed from letsencrypt.

demo

Requires diafygi/acme-tiny.

Requires a web-server with a configured /.well-known/acme-challenge/ set to CHALLENGE_PATH in the third line of the script. See Step 3 of diafygi's great readme

TODO:

  • configurable ./account.key (i.e. not hardcoded)
@Syrup-tan
Syrup-tan / 0_ProjectEuler.md
Last active September 30, 2016 08:52
Project Euler

Project Euler

My attempt at weekly project euler solution

SSL over :80 with nginx

Using nginx's error_page directive we can support SSL over both :80 and :443

Why?

Some intrusive firewalls, ISPs, companies, and ``Anti-virus'' programs attempt to intercept SSL connections on :443. Some of these programs even offer their own certificate, in order to perform MiTM attacks. In more extreme cases, connections may be entirely blocked on :443.

By allowing SSL connections on :80, users with these threats may still access the server securely.

How?

Using nginx's

Example: https://denpa.moe/~syrup/himawari8.png