Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is difference between /etc/ssl/certs/ca-bundle.crt and /etc/ssl/certs/ca-bundle.trust.crt in centos7?

Tags:

ssl

centos7

I am using certificates signed by CA file for securing kubernetes API. For that I added my CA file say ca.crt to /etc/pki/ca-trust/source/anchors/ and used the command $ update-ca-trust to add it to the trusted list. I found my certificate in /etc/ssl/certs/ca-bundle.crt file and also in /etc/ssl/certs/ca-bundle.trust.crt file with some appended string of 20 (not exactly) characters. Why there are these two files and what is difference between them ?

like image 351
Yogesh Jilhawar Avatar asked May 13 '16 13:05

Yogesh Jilhawar


People also ask

What is ETC SSL Certs CA bundle CRT?

update-ca-certificates is a program that updates the directory /etc/ssl/certs to hold SSL certificates and generates ca-certificates. crt, a concatenated single-file list of certificates. It reads the file /etc/ca-certificates.

What is the difference between CER and CRT file?

However, what you may or may not know is that there's fundamentally no difference between CER and CRT files. Much like DER files, they're both Base64 (ASCII) format files — they just happen to have two different filename extensions (. cer and . crt).

What is ca-certificates CRT?

ca. crt is the CA's public certificate file. Users, servers, and clients will use this certificate to verify that they are part of the same web of trust. Every user and server that uses your CA will need to have a copy of this file.

What is bundle file in SSL?

CA bundle is a file that contains root and intermediate certificates. The end-entity certificate along with a CA bundle constitutes the certificate chain.


1 Answers

@YogeshJilhawar:Tls ca file which is signed by private institute must be added to the ca-bundle files on OS(such as centos7.x),but there is a little different(bwtween ca-bundle.crt with ca-bundle.trust.crt) as following:

ca-bundle.crt contains a list of CA certificates trusted for TLS server authentication usage without distrust information.

ca-bundle.trust.crt contains a list of CA certificates which includes trust (and/or distrust) flags specific to certificate usage.

Both files contain CA certificates in the extended BEGIN/END TRUSTED CERTIFICATE file format.

What's more,ca-trust-source contains low priority source configurations but ca-trust/source contains high priority source configurations.Good luck!

like image 80
aeolus Avatar answered Sep 19 '22 15:09

aeolus