Ticket #18879: 18879.patch

File 18879.patch, 974 bytes (added by simon04, 6 years ago)
  • src/org/openstreetmap/josm/gui/MainApplication.java

    commit 0736b02060962e75cedad7e06332699ac0a50528
    Author: Simon Legner <Simon.Legner@gmail.com>
    Date:   2020-03-07 14:50:00 +0100
    
        fix #18879 - Allow to opt-out from JOSM's certificate amendment
    
    diff --git a/src/org/openstreetmap/josm/gui/MainApplication.java b/src/org/openstreetmap/josm/gui/MainApplication.java
    index 548c2c789..096c57dcb 100644
    a b public PermissionCollection getPermissions(CodeSource codesource) {  
    832832        }
    833833
    834834        try {
    835             CertificateAmendment.addMissingCertificates();
     835            if (!"false".equals(Utils.getSystemProperty("josm.certificates"))) {
     836                CertificateAmendment.addMissingCertificates();
     837            }
    836838        } catch (IOException | GeneralSecurityException ex) {
    837839            Logging.warn(ex);
    838840            Logging.warn(Logging.getErrorMessage(Utils.getRootCause(ex)));