What's new

Solved Cannot upload self-signed cert for web UI

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

unsynaps

Senior Member
I have been trying to upload a self-signed cert to the web UI and it seems to refuse to be accepted. Best I can tell it worked fine in the past.
Logs are throwing the following:

Mar 19 23:46:35 httpd: Can't get subject/authority key identifier. ([F6:2C:1C:3]/[NULL])
Mar 19 23:46:35 httpd: Delete uploaded certificate

No other errors are given.
Certs generated in XCA.
 
 
Uh... OK?
Really tired of this mentality of people thinking they are helping just posting a link with zero explanation. Especially when the link offers no sensible solution to the problem.
 
Uh... OK?
Really tired of this mentality of people thinking they are helping just posting a link with zero explanation. Especially when the link offers no sensible solution to the problem.
OK Given that exactly the same error was reported in that thread I thought Merlin's response might have been of some help. Next time I won't bother trying to help.
 
After some sleep and coffee, I found the answer.
Please post "the answer" for others who may have the same issue and read your thread.
 
I am experiencing a new error uploading my own certs. They worked fine for years, and the latest update the router switched to "Auto" and generated a new cert.

I see nothing in the system logs. What would be the best way to diagnose this?

I am using mkcert (https://github.com/FiloSottile/mkcert) which has worked great in the past.
 
Actually I found the issue.

b_constr = x509v3ext2str_by_nid(x509_cert, NID_basic_constraints);
if (!b_constr) {
_dprintf("%s: Can't get basic constrain from %s\n", __func__, cert_fn);
logmessage("httpd", "Can't get basic constrain from %s", cert_fn);
ret = -7;
goto err_set_uploaded_cert_as_cacert;
}


When I logged all, it finally showed up. Is this absolutely required? The mkcert generated certs worked fine, and now they no longer function. =(

I also started a discussion on the mkcert github. https://github.com/FiloSottile/mkcert/discussions/583
 
Last edited:

Similar threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top