B
B
by_EL2021-09-27 17:29:57
OpenSSL
by_EL, 2021-09-27 17:29:57

How does an SSL TLS certificate work?

I'm interested in the question with the help of which component the web server generates server.pem or server.key certificates
How from what the server generates new certificates for users who visit a certain website, I'm wondering exactly what type what should be in order for the server to be able to generate from this template certificates for clients??
PS I read and know what is PKI
Thank you in advance

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
AUser0, 2021-09-27
@AUser0

Certificates are generated by certification authorities (for example, the free LetsEncrypt), which sign the new certificate with their key. You download and use this certificate. And the whole world trusts this new certificate because it trusts the CA that generated/signed it.

K
ky0, 2021-09-27
@ky0

The web server does not generate anything, the path to the key and certificates are written in its config. You can generate a private key and CSR manually using openssl and slip it into certbot or into the control panel of a commercial CA.

A
AlexVWill, 2021-09-27
@AlexVWill

I will only add the following to the previous answer: if you need to set up a web server with HTTPS (or make SSL certificates for a mail server, for example), that is, the free Let's Encrypt service, it uses the certbot utility, which is just responsible for generating keys remotely, transferring them to the server and specifying them in the configs. As a result, something like this line appears in the Apache config:

SSLCertificateFile /etc/letsencrypt/live/mysite.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mysite.net/privkey.pem

C
CityCat4, 2021-09-28
@CityCat4

How does the server generate new certificates for users who visit a particular website

Nothing and nothing. The certificate that the site provides - it was received in advance and configured by the site admin. The server cannot generate anything for anyone - it has a regular client certificate. If you yourself created a certificate for it, which allows you to generate something, no one will believe such a certificate.
Yes, all PKI is about trust :) We certainly trust all root centers, but no one will believe a self-made certificate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question