nginx-proxy-manager icon indicating copy to clipboard operation
nginx-proxy-manager copied to clipboard

Cannot use "Custom Certificate"

Open typoworx-de opened this issue 6 years ago • 59 comments

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image? Yes

  • Are you sure you're not using someone else's docker image? Yes

Describe the bug Tried to add custom-certificate in Certifcates > Add SSL Certificate > Custom.

After pressing "Save" nothing seems to happen, but Browser/JS Console logs this error:

17.bundle.17.js:1 Uncaught TypeError: Cannot read property 'cloudflare_use' of undefined
    at i.click @ui.save (17.bundle.17.js:1)
    at HTMLDivElement.dispatch (main.bundle.js?v=2.5.0:27)
    at HTMLDivElement.p.handle (main.bundle.js?v=2.5.0:27)

To Reproduce Steps to reproduce the behavior:

See -> Describe the bug

Expected behavior Being able to save the custom certificate or being able to toggle cloudflare-usage (missing form-field?!).

Screenshots If applicable, add screenshots to help explain your problem.

image

Operating System Ubuntu Linux, Google Chrome

Additional context Just in case you're wondering about the TLD in screenshot. It's a private-lan and I made a self-signed certificate using mkcert on my laptop trying to deploy it on nginx-proxy-manager (private-lan server). The cert is required for docker-registry (which requires SSL even in private-lan for docker & portainer container management).

typoworx-de avatar Sep 04 '20 09:09 typoworx-de

Same problem.

RainCat1998 avatar Sep 04 '20 21:09 RainCat1998

Same problem here.

PlasmatikSteak avatar Sep 08 '20 07:09 PlasmatikSteak

Hi, I confirm this behavior since 2.5.0 release, reverting to 2.4.0 release, fixes the upload bug.

Kind Regards

ugoviti avatar Sep 09 '20 09:09 ugoviti

I am having this problem with 2.4.0 and 2.5.0. I get this error Uncaught TypeError: s.meta is undefined

r3draid3r04 avatar Sep 09 '20 15:09 r3draid3r04

i had this problem yesterday and reinstalled all system with 2.4.0 and its working perfect.

ananiasfilho avatar Sep 11 '20 00:09 ananiasfilho

i had this problem yesterday and reinstalled all system with 2.4.0 and its working perfect.

Hello I'm trying in 2.4.0 but, still not working .. I tried to create another user but not working too... So, how do you do ??

Adr1-x avatar Sep 16 '20 15:09 Adr1-x

i had this problem yesterday and reinstalled all system with 2.4.0 and its working perfect.

Hello I'm trying in 2.4.0 but, still not working .. I tried to create another user but not working too... So, how do you do ??

Ok, i found something, in 2.4.0 version, I sent my certificate in .pem and all is work fine.

Adr1-x avatar Sep 17 '20 09:09 Adr1-x

I have the same issue, but it's unresolved by either redeploying 2.4.0 or using a .pem key.

mcx808 avatar Sep 21 '20 16:09 mcx808

Same issue. It does not go away with 2.4.0 or with .pem key.

mshuflin avatar Sep 22 '20 01:09 mshuflin

Version v2.5.0 and the same issue

Valdri avatar Sep 22 '20 10:09 Valdri

Same Issue here

inventorematto avatar Sep 22 '20 21:09 inventorematto

Hello all, to add custom SSL in 2.4.0 version, check to remove data/ directory and docker-compose up -d again. Then when you try to add your custom ssl, let the field empty and click on save, a message will say to fill out the field, then put your name in the field and click to browse the certificate key and certificate.

Adr1-x avatar Sep 23 '20 09:09 Adr1-x

i try in firefox but image

centralhardware avatar Sep 23 '20 18:09 centralhardware

i try in firefox but image

Hello @centralhardware , look the line "dispatch" & "handle". It's 2.5.0 version, no ?

Adr1-x avatar Sep 23 '20 18:09 Adr1-x

i try in firefox but image

Same issue on 2.5.0. Revert to 2.4.0 and clear cache worked for me

Na0mir avatar Sep 24 '20 00:09 Na0mir

same issue here. will try with 2.4.0

toxic0berliner avatar Sep 28 '20 07:09 toxic0berliner

Thanks for all these replies.

Trying release 2.4.0 I'm getting this response (AJAX Response captured from Chrome Network inspector).

I've rolled out using docker with 'jc21/nginx-proxy-manager:2.4.0'.

I've been trying to upload self-signed cert created using mk-cert (#593) The submit of this is quit with alert "Error 500"

image

// 20200928123906
// http://ssl.typoworx.lan:81/api/nginx/certificates/1/upload

{
  "error": {
    "code": 404,
    "message": "Item Not Found - /nginx/certificates/1/upload"
  }
}

May be the docker-provided configuration for nginx & upload path is screwed?

typoworx-de avatar Sep 28 '20 10:09 typoworx-de

Same here. I cannot import Custom SSL certs in either 2.4.0 or 2.5.0. Just broke a whole bunch of stuff. GREAT. npm_custom_cert_issue

I even blew these containers away and started from scratch. STILL CAN'T upload custom SSL certs on 2.5.0. What gives?!

sbazzell avatar Sep 28 '20 20:09 sbazzell

Hello all, to add custom SSL in 2.4.0 version, check to remove data/ directory and docker-compose up -d again. Then when you try to add your custom ssl, let the field empty and click on save, a message will say to fill out the field, then put your name in the field and click to browse the certificate key and certificate.

Still doesn't work.

sbazzell avatar Sep 29 '20 12:09 sbazzell

Still Doesn't Work

MapGuy11 avatar Sep 30 '20 12:09 MapGuy11