Util: Don't set restrictive permissions on exported certs

This commit is contained in:
zzz
2019-05-14 17:41:29 +00:00
parent 05318013e2
commit 4e267f690d

View File

@ -2,6 +2,7 @@ package net.i2p.crypto;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.IOException;
import java.io.OutputStream;
@ -64,7 +65,9 @@ public final class CertUtil {
public static boolean saveCert(Certificate cert, File file) {
OutputStream os = null;
try {
os = new SecureFileOutputStream(file);
// The point is probably to share this, so don't make it 600
//os = new SecureFileOutputStream(file);
os = new FileOutputStream(file);
exportCert(cert, os);
return true;
} catch (CertificateEncodingException cee) {