diff OrthancFramework/UnitTestsSources/RestApiTests.cpp @ 5292:143b45791233

fix SSL unit tests
author Alain Mazy <am@osimis.io>
date Tue, 09 May 2023 18:19:15 +0200
parents 0ea402b4d901
children 78c59b02b121
line wrap: on
line diff
--- a/OrthancFramework/UnitTestsSources/RestApiTests.cpp	Tue May 09 17:48:33 2023 +0200
+++ b/OrthancFramework/UnitTestsSources/RestApiTests.cpp	Tue May 09 18:19:15 2023 +0200
@@ -95,22 +95,15 @@
 /**
    The HTTPS CA certificates for BitBucket were extracted as follows:
    
-   (1) We retrieve the certification chain of BitBucket:
-
-   # echo | openssl s_client -showcerts -connect www.bitbucket.org:443
+   (1) We retrieve the URI of the root CA of BitBucket:
 
-   (2) We see that the certification authority (CA) is
-   "www.digicert.com", and the root certificate is "DigiCert High
-   Assurance EV Root CA". As a consequence, we navigate to DigiCert to
-   find the URL to this CA certificate:
+   # echo | openssl s_client -servername bitbucket.org -connect bitbucket.org:443 2>/dev/null | openssl x509 -text | grep "CA Issuers"
 
-   firefox https://www.digicert.com/digicert-root-certificates.htm
-
-   (3) Once we get the URL to the CA certificate, we convert it to a C
+   (2) Once we get the URL to the CA certificate, we convert it to a C
    macro that can be used by libcurl:
 
    # cd UnitTestsSources
-   # ../Resources/RetrieveCACertificates.py BITBUCKET_CERTIFICATES https://cacerts.digicert.com/DigiCertTLSHybridECCSHA3842020CA1-1.crt > BitbucketCACertificates.h
+   # python2 ../Resources/RetrieveCACertificates.py BITBUCKET_CERTIFICATES http://cacerts.digicert.com/DigiCertSHA2ExtendedValidationServerCA.crt > BitbucketCACertificates.h
 **/
 
 #include "BitbucketCACertificates.h"