package/ca-certificates: don't hash certificates.crt
PATCH 1/2 package/ca-certificates: don't hash certificates.crt
Copy certificates.crt to /etc/ssl/certs after we run c_rehash to prevent it getting hashed by mistake.
--- package/ca-certificates/ca-certificates.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
package/ca-certificates/ca-certificates.mk +7 -1
@@ -30,14 +30,20 @@ define CA_CERTIFICATES_INSTALL_TARGET_CMDS # Create symlinks to certificates under /etc/ssl/certs # and generate the bundle + rm -f $(@D)/ca-certificates.crt cd $(TARGET_DIR) ;\ for i in `find usr/share/ca-certificates -name "*.crt"` ; do \ ln -sf ../../../$$i etc/ssl/certs/`basename $${i} .crt`.pem ;\ - cat $$i >>etc/ssl/certs/ca-certificates.crt ;\ + cat $$i >>$(@D)/ca-certificates.crt ;\ done # Create symlinks to the certificates by their hash values $(HOST_DIR)/bin/c_rehash $(TARGET_DIR)/etc/ssl/certs + + # Install the certificates bundle we just created + $(INSTALL) -D -m 644 $(@D)/ca-certificates.crt \ + $(TARGET_DIR)/etc/ssl/certs/ca-certificates.crt + endef $(eval $(generic-package))
Signature · 1 line
2.17.0
PATCH 2/2 package/ca-certificates: bump version to 20180409
Update Mozilla certificate authority bundle to version 2.22.
The following certificate authorities were added (+):
+ "GDCA TrustAUTH R5 ROOT"
+ "SSL.com EV Root Certification Authority ECC"
+ "SSL.com EV Root Certification Authority RSA R2"
+ "SSL.com Root Certification Authority ECC"
+ "SSL.com Root Certification Authority RSA"
+ "TrustCor ECA-1"
+ "TrustCor RootCert CA-1"
+ "TrustCor RootCert CA-2"
The following certificate authorities were removed (-):
- "ACEDICOM Root"
- "AddTrust Low-Value Services Root"
- "AddTrust Public Services Root"
- "AddTrust Qualified Certificates Root"
- "CA Disig Root R1"
- "CNNIC ROOT"
- "Camerfirma Chambers of Commerce Root"
- "Camerfirma Global Chambersign Root"
- "Certinomis - Autorit? Racine"
- "Certum Root CA"
- "China Internet Network Information Center EV Certificates Root"
- "Comodo Secure Services root"
- "Comodo Trusted Services root"
- "DST ACES CA X6"
- "GeoTrust Global CA 2"
- "PSCProcert"
- "Security Communication EV RootCA1"
- "Swisscom Root CA 1"
- "Swisscom Root CA 2"
- "Swisscom Root EV CA 2"
- "TURKTRUST Certificate Services Provider Root 2007"
- "TUBITAK UEKAE Kok Sertifika Hizmet Saglayicisi - Surum 3"
- "UTN USERFirst Hardware Root CA"
--- package/ca-certificates/ca-certificates.hash | 4 ++-- package/ca-certificates/ca-certificates.mk | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
package/ca-certificates/ca-certificates.hash +2 -2
@@ -1,3 +1,3 @@ # hashes from: $(CA_CERTIFICATES_SITE)/ca-certificates_$(CA_CERTIFICATES_VERSION).dsc : -sha1 4c093ceee1f1428d5aa7e9a5324b92961c0c0f06 ca-certificates_20170717.tar.xz -sha256 e487639b641fa75445174734dd6e9d600373e3248b3d86a7e3c6d0f6977decd2 ca-certificates_20170717.tar.xz +sha1 edf0ec04b02fcbc90cc65906ff83fb042894a3b7 ca-certificates_20180409.tar.xz +sha256 7af6f5bfc619fd29cbf0258c1d95107c38ce840ad6274e343e1e0d971fc72b51 ca-certificates_20180409.tar.xz
package/ca-certificates/ca-certificates.mk +2 -2
@@ -4,9 +4,9 @@ # ################################################################################ -CA_CERTIFICATES_VERSION = 20170717 +CA_CERTIFICATES_VERSION = 20180409 CA_CERTIFICATES_SOURCE = ca-certificates_$(CA_CERTIFICATES_VERSION).tar.xz -CA_CERTIFICATES_SITE = http://snapshot.debian.org/archive/debian/20170814T210836Z/pool/main/c/ca-certificates +CA_CERTIFICATES_SITE = http://snapshot.debian.org/archive/debian/20180411T111033Z/pool/main/c/ca-certificates CA_CERTIFICATES_DEPENDENCIES = host-openssl # ca-certificates can be built with either python 2 or python 3 # but it must be at least python 2.7
Signature · 1 line
2.17.0
PATCH 2/2 package/ca-certificates: bump version to 20180409
Quoted 38 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Martin" == Martin Bark <[email protected]> writes:
Update Mozilla certificate authority bundle to version 2.22. The following certificate authorities were added (+):
+ "GDCA TrustAUTH R5 ROOT"
+ "SSL.com EV Root Certification Authority ECC"
+ "SSL.com EV Root Certification Authority RSA R2"
+ "SSL.com Root Certification Authority ECC"
+ "SSL.com Root Certification Authority RSA"
+ "TrustCor ECA-1"
+ "TrustCor RootCert CA-1"
+ "TrustCor RootCert CA-2"The following certificate authorities were removed (-):
- "ACEDICOM Root"
- "AddTrust Low-Value Services Root"
- "AddTrust Public Services Root"
- "AddTrust Qualified Certificates Root"
- "CA Disig Root R1"
- "CNNIC ROOT"
- "Camerfirma Chambers of Commerce Root"
- "Camerfirma Global Chambersign Root"
- "Certinomis - Autorit? Racine"
- "Certum Root CA"
- "China Internet Network Information Center EV Certificates Root"
- "Comodo Secure Services root"
- "Comodo Trusted Services root"
- "DST ACES CA X6"
- "GeoTrust Global CA 2"
- "PSCProcert"
- "Security Communication EV RootCA1"
- "Swisscom Root CA 1"
- "Swisscom Root CA 2"
- "Swisscom Root EV CA 2"
- "TURKTRUST Certificate Services Provider Root 2007"
- "TUBITAK UEKAE Kok Sertifika Hizmet Saglayicisi - Surum 3"
- "UTN USERFirst Hardware Root CA"
Quoted 1 line
Signed-off-by Martin Bark <[email protected]>
Committed to next, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/2 package/ca-certificates: don't hash certificates.crt
In reply to Martin BarkQuoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Martin" == Martin Bark <[email protected]> writes:
Copy certificates.crt to
/etc/ssl/certsafter we runc_rehashto prevent it getting hashed by mistake.
What is the effect of running c_rehash on it? Just an extra symlink or any functional difference?
Quoted 10 lines
Signed-off-by Martin Bark <[email protected]>--- package/ca-certificates/ca-certificates.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)package/ca-certificates/ca-certificates.mk +0
-0
package/ca-certificates/ca-certificates.mk define CA_CERTIFICATES_INSTALL_TARGET_CMDS · line 38
Quoted 10 lines
package/ca-certificates/ca-certificates.mk +2
-1@@ -30,14 +30,20 @@ define CA_CERTIFICATES_INSTALL_TARGET_CMDS # Create symlinks to certificates under /etc/ssl/certs # and generate the bundle + rm -f $(@D)/ca-certificates.crt cd $(TARGET_DIR) ;\ for i in `find usr/share/ca-certificates -name "*.crt"` ; do \ ln -sf ../../../$$i etc/ssl/certs/`basename $${i} .crt`.pem ;\ - cat $$i >>etc/ssl/certs/ca-certificates.crt ;\ + cat $$i >>$(@D)/ca-certificates.crt ;\ done
Alternatively we could redirect the entire for loop to the bundle, E.G.
done > $(@D)/ca-certificates.crt
While this seems like an improvement for when ca-certificates-reinstall is run, I'm not sure what the relation is to $SUBJECT?
Quoted 17 lines
package/ca-certificates/ca-certificates.mk +5
-0# Create symlinks to the certificates by their hash values $(HOST_DIR)/bin/c_rehash $(TARGET_DIR)/etc/ssl/certs + + # Install the certificates bundle we just created + $(INSTALL) -D -m 644 $(@D)/ca-certificates.crt \ + $(TARGET_DIR)/etc/ssl/certs/ca-certificates.crt + endef $(eval $(generic-package))Signature · 6 lines
2.17.0 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/2 package/ca-certificates: don't hash certificates.crt
Peter,
Quoted 8 lines · Peter Korsgaard
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Martin" == Martin Bark <[email protected]> writes:
Copy certificates.crt to
/etc/ssl/certsafter we runc_rehashto prevent it getting hashed by mistake.What is the effect of running
c_rehashon it? Just an extra symlink or any functional difference?
c_rehash hashes certificates.crt by mistake and that symlink clashes with one of the CA certificates. The end result is one of the hashes incorrectly points to certificates.crt instead of the CA certificate. I noticed this during testing because i checked /etc/ssl/certs was the same as under ubuntu.
Thanks Martin
Quoted 44 lines
Review
Quoted 7 lines
Signed-off-by Martin Bark <[email protected]>--- package/ca-certificates/ca-certificates.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)(quoted diff) +0
-0
b/package/ca-certificates/ca-certificates.mkpackage/ca-certificates/ca-certificates.mk define CA_CERTIFICATES_INSTALL_TARGET_CMDS · line 36
Quoted 11 lines
index
cb0e961465..b99e6f47ca100644package/ca-certificates/ca-certificates.mk +1
-0@@ -30,14 +30,20 @@ define CA_CERTIFICATES_INSTALL_TARGET_CMDS # Create symlinks to certificates under /etc/ssl/certs # and generate the bundle + rm -f $(@D)/ca-certificates.crt cd $(TARGET_DIR) ;\ for i in `find usr/share/ca-certificates -name "*.crt"` ; do \ ln -sf ../../../$$i etc/ssl/certs/`basename $${i}.crt`.pem ;\
package/ca-certificates/ca-certificates.mk define CA_CERTIFICATES_INSTALL_TARGET_CMDS · line 38
Quoted 3 lines
package/ca-certificates/ca-certificates.mk +1
-1- cat $$i >>etc/ssl/certs/ca-certificates.crt ;\ + cat $$i >>$(@D)/ca-certificates.crt ;\ doneAlternatively we could redirect the entire for loop to the bundle, E.G.
done > $(@D)/ca-certificates.crt
While this seems like an improvement for when ca-certificates-reinstall is run, I'm not sure what the relation is to $SUBJECT?
Quoted 12 lines
package/ca-certificates/ca-certificates.mk +5
-1# Create symlinks to the certificates by their hash values $(HOST_DIR)/bin/c_rehash $(TARGET_DIR)/etc/ssl/certs + + # Install the certificates bundle we just created + $(INSTALL) -D -m 644 $(@D)/ca-certificates.crt \ + $(TARGET_DIR)/etc/ssl/certs/ca-certificates.crt + endef $(eval $(generic-package)) --2.17.0
Quoted 8 lines
Quoted 4 lines
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot--
Bye, Peter Korsgaard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180529/44c60e85/attachment.html>
PATCH 1/2 package/ca-certificates: don't hash certificates.crt
Quoted 14 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Martin" == Martin Bark <[email protected]> writes:
Peter,
Quoted 8 lines · Peter Korsgaard
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Martin" == Martin Bark <[email protected]> writes:
Copy certificates.crt to
/etc/ssl/certsafter we runc_rehashto prevent it getting hashed by mistake.What is the effect of running
c_rehashon it? Just an extra symlink or any functional difference?
Quoted 5 lines
c_rehashhashes certificates.crt by mistake and that symlink clashes with one of the CA certificates. The end result is one of the hashes incorrectly points to certificates.crt instead of the CA certificate. I noticed this during testing because i checked/etc/ssl/certswas the same as under ubuntu.
Ok, can you rework the commit message with these details (and perhaps the for loop change) and resubmit? Thanks!
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/2 package/ca-certificates: don't hash certificates.crt
Peter,
Quoted 16 lines · Peter Korsgaard
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Martin" == Martin Bark <[email protected]> writes:
Peter,
Quoted 2 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Martin" == Martin Bark <[email protected]> writes:
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Copy certificates.crt to
/etc/ssl/certsafter we runc_rehashto prevent it getting hashed by mistake.What is the effect of running
c_rehashon it? Just an extra symlink or any functional difference?
c_rehashhashes certificates.crt by mistake and that symlink clasheswith
Quoted 9 lines
Quoted 3 lines
one of the CA certificates. The end result is one of the hashes incorrectly points to certificates.crt instead of the CA certificate. I noticed this during testing because i checked
/etc/ssl/certswas thesame
Quoted 1 line
as under ubuntu.
Ok, can you rework the commit message with these details (and perhaps the for loop change) and resubmit? Thanks!
Will do
Thanks
Martin
Quoted 4 lines
--
Bye, Peter Korsgaard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180529/9cf889bf/attachment.html>