Answer the question
In order to leave comments, you need to log in
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
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.
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.
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
How does the server generate new certificates for users who visit a particular website
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question