]> WPIA git - gigi.git/blobdiff - src/club/wpia/gigi/pages/account/certs/Certificates.java
add: enable user to download certificate with file extention crt or pem
[gigi.git] / src / club / wpia / gigi / pages / account / certs / Certificates.java
index 9c0dafd0b9622c292b7a850dbd7a72a15d2ed8da..765a0fd0a15305eff404dda6ebdc008db64a827b 100644 (file)
@@ -66,7 +66,7 @@ public class Certificates extends Page implements HandlesMixedRequest {
         if (req.getParameter("install") != null) {
             resp.setContentType("application/x-x509-user-cert");
         }
-        if (pi.endsWith(".crt")) {
+        if (pi.endsWith(".crt") || pi.endsWith(".pem")) {
             crt = true;
             pi = pi.substring(0, pi.length() - 4);
         } else if (pi.endsWith(".cer")) {