mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-10-22 19:43:11 +00:00
Util: Don't set restrictive permissions on exported certs
This commit is contained in:
1 parent
05318013e2
commit
4e267f690d
1 file changed
+4
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user