|
@@ -461,7 +461,7 @@ public class AuthResource { |
|
|
if (type == null) type = CertType.pem; |
|
|
if (type == null) type = CertType.pem; |
|
|
final BubbleNetwork thisNet = configuration.getThisNetwork(); |
|
|
final BubbleNetwork thisNet = configuration.getThisNetwork(); |
|
|
if (thisNet == null) return die("getCaCert: thisNetwork was null"); |
|
|
if (thisNet == null) return die("getCaCert: thisNetwork was null"); |
|
|
final File certFile = new File(CACERTS_DIR, thisNet.getNetworkDomain()+"."+type.name()); |
|
|
|
|
|
|
|
|
final File certFile = new File(CACERTS_DIR, thisNet.getNetworkDomain()+"-ca-cert."+type.name()); |
|
|
if (!certFile.exists()) return notFound(type.name()); |
|
|
if (!certFile.exists()) return notFound(type.name()); |
|
|
return send(new FileSendableResource(certFile).setForceDownload(true)); |
|
|
return send(new FileSendableResource(certFile).setForceDownload(true)); |
|
|
} |
|
|
} |
|
|