Skip to content

jwsy/pem-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b4b84f2 ยท Jan 5, 2024

History

3 Commits
Jan 5, 2024
Jan 5, 2024

Repository files navigation

pem-tutorial

Code for the medium article https://itnext.io/pem-file-basics-with-mkcert-and-docker-07a7b99d9353

In this article, weโ€™ll learn about certificates & keys in PEM (Privacy Enhanced Mail) format, root Certificate Authorities, and use them so that my internal offline systems can access a server with a custom (self-signed) certificate. This article is a basic overview of PEM files, what they look like, and how to add them to a Amazon Linux (and also Fedora/RedHat) server running in a Docker container on your laptop. As a cybersecurity professional, doing these tasks was very enlightening to me! ๐Ÿง  โšก๏ธ

Table of Contents

  • What is a PEM (Privacy Enhanced Mail) fileโ“ (1/10)
  • Get a PEM file from your browser ๐Ÿ—บ (2/10)
  • Inspect the PEM file with openssl ๐Ÿ” (3/10)
  • What is a root Certificate Authority (CA)? Create one with mkcert to understand (4/10)
  • Create a self-signed certificate and key for https://dev.localhost ๐Ÿ–‹ (5/10)
  • Run an internal HTTPS service with the cert with Python ๐Ÿ (6/10)
  • Un-trust the CA and make a successful curl request by specifying the CA cert (7/10)
  • Make a new Amazon Linux host with Docker that will trust the self-signed CA ๐Ÿณ (8/10)
  • Update the Linux server to trust this new CA (9/10)
  • Conclusion (10/10) ๐Ÿ™Œ

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages