Changeset 14498 in josm for trunk


Ignore:
Timestamp:
2018-12-02T20:17:51+01:00 (7 months ago)
Author:
Don-vip
Message:

fix #17062, see #16073 - Load Taiwan Government Root CA certificate

This allows JOSM to accesss https://data.gov.tw/license

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CertificateAmendment.java

    r14138 r14498  
    162162     * Identifiers must match Windows/macOS keystore aliases and Unix filenames for efficient search.
    163163     * To find correct values, see https://ccadb-public.secure.force.com/mozilla/IncludedCACertificateReport
     164     * and https://support.apple.com/en-us/HT208127
    164165     */
    165166    private static final NativeCertAmend[] PLATFORM_CERT_AMEND = {
     
    187188                "e23d4a036d7b70e9f595b1422079d2b91edfbb1fb651a0633eaa8a9dc5f80703",
    188189                "https://eidas.disig.sk"),
     190        // Government of Taiwan - https://grca.nat.gov.tw/GRCAeng/index.html
     191        new NativeCertAmend("Government Root Certification Authority", "Government Root Certification Authority", "Taiwan_GRCA.pem",
     192                "7600295eefe85b9e1fd624db76062aaaae59818a54d2774cd4c0b2c01131e1b3",
     193                "https://grca.nat.gov.tw")
    189194    };
    190195
  • trunk/test/unit/org/openstreetmap/josm/io/CertificateAmendmentTestIT.java

    r14138 r14498  
    8181    }
    8282
     83    /**
     84     * Test Taiwan government.
     85     * @throws IOException in case of I/O error
     86     */
     87    @Test
     88    public void testTaiwanGovernment() throws IOException {
     89        connect("https://grca.nat.gov.tw", true);
     90    }
     91
    8392    private static void connect(String url, boolean shouldWork) throws IOException {
    8493        URLConnection connection = new URL(url).openConnection();
Note: See TracChangeset for help on using the changeset viewer.