Changeset 3bc9053 for apps/sam


Ignore:
Timestamp:
Mar 4, 2018 12:14:05 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c6e401a
Parents:
5a63926
Message:

KeyStore?: Log expiration of self-signed certs

Location:
apps/sam/java/src/net/i2p/sam
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/sam/java/src/net/i2p/sam/SSLUtil.java

    r5a63926 r3bc9053  
    164164            fis = new FileInputStream(ks);
    165165            keyStore.load(fis, ksPass.toCharArray());
     166            KeyStoreUtil.logCertExpiration(keyStore, ks.getAbsolutePath(), 180*24*60*60*1000L);
    166167            KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
    167168            kmf.init(keyStore, keyPass.toCharArray());
  • apps/sam/java/src/net/i2p/sam/client/SSLUtil.java

    r5a63926 r3bc9053  
    165165            fis = new FileInputStream(ks);
    166166            keyStore.load(fis, ksPass.toCharArray());
     167            KeyStoreUtil.logCertExpiration(keyStore, ks.getAbsolutePath(), 180*24*60*60*1000L);
    167168            KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
    168169            kmf.init(keyStore, keyPass.toCharArray());
Note: See TracChangeset for help on using the changeset viewer.