S
S
Simon Tis2019-03-06 16:47:19
linux
Simon Tis, 2019-03-06 16:47:19

How to check which SSL certificate is installed?

The bottom line is this:
There is a boxed Bitrix24, deployed on linux.
There is ssh access.
How can I check which certificate I currently have installed?
I know that the question may seem ridiculously simple, but with Linux it’s completely on you, but you need to check it.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Nikolaev, 2019-03-06
@simon91

You can view the certificate data through openssl (knowing where it is):
where /etc/nginx/ssl/cert.crt is the path to the installed certificate
How can I find out which certificate is used in BitrixVM?
In the /etc/nginx/bx/site_avaliable folder, look for the site configuration that handles the https connection and matches your domain name (or underscore).
It is usually called ssl.s1.conf and will contain something like this (quote, not the whole content):

server {
  listen	443 default_server http2;
  server_name _;

This file can have an insert:
# CERTIFICATE ANSIBLE MANAGED BLOCK
include bx/conf/ssl_options.conf;
ssl_certificate   zzzzz/fullchain.pem;
ssl_certificate_key  zzzzz/privkey.pem;
ssl_trusted_certificate zzzzz/chain.pem;
# CERTIFICATE ANSIBLE MANAGED BLOCK

If it is, then the certificate of interest is located in the zzzzz/fullchain.pem file.
If it is not there, then most likely it is /etc/nginx/ssl/cert.pem

R
roswell, 2019-03-06
@roswell

echo | openssl s_client -showcerts -servername site.name -connect site.name:443
# или
curl -v https://site.name/

S
SubGANs, 2019-03-06
@SubGANs

F12 in browser - Security - View certificate. Well, or through openssl, as advised above.
There are all sorts of online checks, you drive in a link to the site and everything will be shown to you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question