-
Notifications
You must be signed in to change notification settings - Fork 35
Self signed SSL certificate
Ravi Teja Gudapati edited this page Jan 16, 2018
·
2 revisions
Generating a self signed SSL certificate involves three steps:
- Create RSA private and public key pair
- Create a Certificate Signing Request (CSR)
- Create the certificate
The following outputs from the above process will be necessary to configure HTTPS:
- RSA keys (
keys.pem
) - Certificate (
certificate.pem
)
Lets look at each step in details.
The following command generated 2048 bit RSA key pair and puts them in a file named keys.pem
.
openssl genpkey -algorithm RSA -out keys.pem -pkeyopt rsa_keygen_bits:2048
The following command creates CSR. Provide appropriate details in the prompt.
openssl req -new -key keys.pem -out csr.csr
The following command creates the certificate certificate.pem
.
openssl x509 -req -sha256 -days 365 -in csr.csr -signkey keys.pem -out certificate.pem
Learn how to use certificate.pem
and keys.pem
to configure HTTPS with Jaguar using the following wiki entry: 'HTTPS'.
Basics
- Route handler
- Path matching
- Path parameters
- Query parameters
- Serving static files
- Cookies
- Controller
- Parameter binding
- Hot reload
Serialization
Forms
Sessions
Authentication
- Basic authentication
- Form authentication
- JSON authentication
- Authorization
- OAuth
- MongoDb
- PostgreSQL
- MySQL
- Establish connection
- ORM
- Server sent events (SSE)
- Websockets
- systemd
- Docker
- AppEngine