NGINX ssl certificate problem

Nethsecurity 8
Module: NGINX

NGINX ssl certificate problem and it does not load the graphical interface through https://IP:9090, nor does it activate the Luci interface.

The following error is generated:

nginx -T -c ‘/etc/nginx/uci.conf’

2026/01/29 13:15:03 [emerg] 51345#0: cannot load certificate key “/etc/nginx/custom_certs/HTCPark.key”: PEM_read_bio_PrivateKey() failed (SSL: error:1E08010C:DECODER routines::unsupported:No supported data to decode. Input type: PEM)
nginx: configuration file /etc/nginx/uci.conf test failed

Is there a way to regenerate the certificate for Nginx?

Cordially,

Juan Carlos Ortiz Lemos

It seems you uploaded a custom cert/key which has a wrong format.

You could change the affected host rules in the nginx config (/etc/config/nginx) and replace the wrong cert/key with the default one:

	option uci_manage_ssl 'self-signed'
	option ssl_certificate '/etc/nginx/conf.d/_lan.crt'
	option ssl_certificate_key '/etc/nginx/conf.d/_lan.key'

To apply the config:

nginx-proxy-gen
/etc/init.d/nginx restart

See nginx | NethSecurity for more information.

1 Like