Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
SSL, CAs and keeping your stuff safe
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Armin Ronacher
May 10, 2014
Programming
1.1k
7
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
SSL, CAs and keeping your stuff safe
A capitalistic and system conformant talk about encryption.
Armin Ronacher
May 10, 2014
More Decks by Armin Ronacher
See All by Armin Ronacher
Reflections on building cloud and local hybrid machine entities
mitsuhiko
1
240
Agentic Coding: The Future of Software Development with Agents
mitsuhiko
0
960
Do Dumb Things
mitsuhiko
0
1.1k
No Assumptions
mitsuhiko
0
460
The Complexity Genie
mitsuhiko
0
370
The Catch in Rye: Seeding Change and Lessons Learned
mitsuhiko
0
470
Runtime Objects in Rust
mitsuhiko
0
460
Rust at Sentry
mitsuhiko
0
630
Overcoming Variable Payloads to Optimize for Performance
mitsuhiko
0
330
Other Decks in Programming
See All in Programming
Simple Storage Service(S3) is not simple
iwatsukayura
0
280
Herb in Rails 8.2: Your ERB views, now HTML-aware @ Rails World 2026, Austin, Texas
marcoroth
0
210
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
120
Compiling a real-world CLI tool to native with Static Hermes
tmikov2023
0
110
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
130
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
Railsバージョンを4倍にした話
optim
0
290
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.6k
The Rails Doctrine Decade
koic
2
580
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
730
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
AI時代のコードレビューは人に向けるな、仕組みに向けろ
texmeijin
5
3.7k
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
Paper Plane (Part 1)
katiecoart
PRO
2
12k
Java REST API Framework Comparison - PWX 2021
mraible
34
9.8k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
Design in an AI World
tapps
1
350
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
2.9k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
How to audit for AI Accessibility on your Front & Back End
davetheseo
0
600
Heart Work Chapter 1 - Part 1
lfama
PRO
10
37k
How to train your dragon (web standard)
notwaldorf
96
6.9k
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
2
6.3k
Transcript
SSL, CAs and keeping your stuff safe BQSFTFOUBUJPOCZBSNJOSPOBDIFSGPSQZHSVOO http://lucumr.pocoo.org/ —
@mitsuhiko
SSL, CAs and keeping your stuff safe BQSFTFOUBUJPOCZBSNJOSPOBDIFSGPSQZHSVOO http://lucumr.pocoo.org/ —
@mitsuhiko a capitalistic and system conformant talk about encryption
Armin Ronacher Independent Contractor for Splash Damage / Fireteam Doing
Online Infrastructure for Computer Games
… The Problem with Programmers ~ Epilogue ~
Programmers think everything is a technical problem
Fraud ~ Chapter 1 ~
XXXX-XXXX-XXXX-1234 What is the worst that can happen?
What makes Credit Card Numbers “secure”?
theft ere will always be criminals
prevented But what damage can they do?
Bitcoin A Credit Card Strong Encryption Potentially No Encryption 256
bit private key 16 digit number + checksum decentralized centralized √ x
But I'd rather lose my credit card …
Never
LOL
We Accept Stolen Creditcards
e Protocol e Process is insecure is secure
If the aud percentage is smaller than the transaction fees
we're all good.
It's too easy to forget the bigger picture
of Lock Symbols and Encryption ~ Chapter 2 ~
the lock symbol is a lie
the lock stands for secure
but so is encryption 8 7
such security
such buzzwords CRIME BEAST Heartbleed BREACH PFS
users need to understand how to keep good om bad
lock symbols / good om bad encryption. = -
but even developers are not sure yet …
remember why you encrypt (NSA
Why do we Encrypt Traffic? ~ Chapter 3 ~
None
public WiFi the unencrypted browser session kilLed
? Who is the Attacker?
om secret agents to idiots
om targeted to untargeted
om low to high probability
What You Need for Encryption ~ Chapter 4 ~
passive vs active eavesdropping encryption authentication
$ ssh pocoo.org The authenticity of host 'pocoo.org (148.251.50.164)' can't
be established. RSA key fingerprint is 14:23:83:02:45:f9:9c:d0:eb:39:c7:14:42:f5:9f:9c. Are you sure you want to continue connecting (yes/no)?
your user does not check ngerprints (your
e Certificate Authorities thus:
CAs are worthless for securing APIs let it be known
that
Protecting APIs and Services ~ Chapter 5 ~ (non
The Only Rule to Follow
run your own CA issue certi cates for 24 hours
trust your own CA only screw re ocations
You trust your own CA by distributing the certi cate
to everybody.
If your root gets compromised, distribute new root certi cates.
If an individual key gets compromised, in less than 24
hours everything is ne.
from requests import get resp = get('https://api.yourserver.com/', verify='your/certificate.bundle')
“But my awesome AntiVirus says your certi cate is not
trusted.” — Windows User
Certificate Authorities Again ~ Chapter 6 ~
Hardly news: CAs are Broken
But why are the broken?
I Trust “TÜRKTRUST Elektronik Serti ka Hizmet Sağlayıcısı” to ouch
for the identity of any domain on the planet. Trusting a CA:
trusting half the world: one shitty employee in one shitty
CA is enough to break your security.
I Trust “Comodo” to ouch for the identity of “Foo
Owner” foo.com. I only trust “Foo Owner” to ouch for the identity of api.foo.com What we actually want:
if you have seen google.com being from Verisign and all
the sudden google.com becomes a StartSSL certificate you know something might be wrong.
Soon: Certificate Pinning?
Frack OpenSSL and Question “Best Practices” ~ Chapter 7 ~
Self-Signed Certificates are not bad. Just in browsers.
Never. Ever. Look at OpenSSL's Source.
OpenSSL's "patches" are even worse: Apple's OpenSSL always trusts system
store :-/
Requests by default trusts it's own bundle :-/ (And does
not even properly document how to use custom ones)
With Heartbleed SSL was less secure than no SSL :-/
Growing SSL ~ Chapter 8 ~
Credit Cards were made for thousands of people Certificate Authorities
were made for hundreds of sites
OpenSSL was probably improperly audited
See “OpenSSL Valhalla Rampage” :-( “i give up. reuse problem
is unixable. dlg says puppet crashes” — tedu
Plan for Failure ~ Chapter 9 ~
what
what happens to your user if he gets hacked? (food
for thought: keyloggers are still a thing)
what happens to your data
what happens to your company
encryption is hardened security it must not be your only
defense
? Feel Free To Ask Questions Talk slides will be
online on lucumr.pocoo.org/talks You can find me on Twitter: @mitsuhiko And gittip: gittip.com/mitsuhiko Or hire me:
[email protected]