Hi @akwe-xavante,
About your certificate comment and you aren’t the only one that has past year given same kind of comments and asked why devices ship with private certificates.
This kind of suggestions made are very easy thinking they would be easyly solved. But unfortunately they aren’t. The following is quite long explanation why.
What I’m about to assure you if it was easy for Teltonika, then why very same out of box installed public certificates with convenient auto renewal isn’t implemented by the very large enterprise class network gear makers devices which are suffering exactly same problem. Just to mention few: Cisco, Huawei, Arista Networks, Hewlett Packard Enterprise (Aruba, Juniper Networks) and Nokia, etc.
While you think why this is an issue. Also let me convince you there isn’t some global conspiracy among device vendors, just to tease their customers not to fix such easy issue and keep trolling their customers just for fun.
Following is very simplified high level version basic information I need to make you first understand how certificates work in general, There are much much more details involved each stage, but I’m not going to complicate things further and try explain more than bare minimum here.
-
The policies around Web X.509 certificates are managed by The CA/Browser Forum. That is the collaboration forum which issues policies and rules how it’s member CA’s (Certificate Authorities) are expected to manage each of their own CA operation and very detailed rules of various kind of certificates they are only allowed to issue. It is very bureaucratic organisation and harsh to any compliance issues found to be solved.
-
Each CA builds largely their own CA architecture, writes required pile of policy, technical and operational documents, applies then approval pass auditing and inspections of course. Once CA does pass and is approved its CA root certificates are eligible to be included by each of the major browser vendors browser products root-CA repository.
-
When someone requires a certificate for a site, they contact some of these CA’s with providing CSR (a certificate request), which validity CA need to verify according to its written policies they had agreed as a CA/Browser forum member.
In practise CA’s root-CA’s are long lived and for security reasons kept usually in safe, and they use as a every day signing certificate another they issue themselves and sign by their root-CA certificate. This another is called an intermediate CA. These two now form a two certificate chain, root-certificate followed by intermediate certificate. Theintermediate is then used to sign customer CSR’s in most simplified case. Sometimes certificate chains are bit longer etc. But you get the idea how this works. And these intermediate CA’s are much shorter lived, rolled over ie. replaced by the newer issued before previously used one Not After date expires.
- When that CA signed customer certificate is then installed some web-site or like, then the somebody connecting with browser in HTTPS protocol is given back from that site the issued certificate together with all and any intermediate certificates from that certificate up to the issuer root-certificate, which has to be found from the browser. If that is the case then browser will happily connect to that service and user is not bothered by any question “Do you trust this service yadda yadda …” that was your point to get rid of.
OK right. Let’s get back to what makes it hard for Teltonika or actually any other trying to do the same however large or resourceful enterprise. There are few problems, why solving this is in practise impossible to achieve. Because:
- Keep in mind while reading the points below: CA/Browser forum policies and rules control CA’s and prevent them using their root-certificates which are included in browsers to anything but what is approved by those policies and rules.
-
Public certificates, which public CA’s are able to issue, can’t issue certificate for private network addresses, that is RFC 1918 (10.0.0.0/8, 172.16.0.0/22, 192.168.0.0/16) and the like (IPv6 ULA and LinkLocal addresses).
-
Nor they can issue any certificates for customers private local domains, which are not visible.outside. That is because various types of certificates (EV, OV, DV) all require also domain verification which requires verifyin that applicant can be proven to have control of that domain. And that simply not possible for local domains.
-
For more complete list, search Google “General rules what ca/browser forum has mandated what are currently rules required and what are denied types of browser certifcates CA’s are not allowed to issue?”
That covers reasons why Teltonika or whatever router, network gear whatever doesn’t have those convenient non complaining certificates readily available out of the box when you start using them.
And how would any device manufacturer be able any more know and install ready made working certificate for devices on WAN sides any better? CA’s don’t generally sign certificates even for public IP’s, they just don’t do it.
Some of them like free Let’s encrypt issues DV (domain validated) certificates for your domain once you apply from already connected and runnig system. But to get one yo need first to add your domain appropriate entry (A or AAAA RR) for the device. They can’t just pick some random domain name or sign certificate which Subject cn or SAN contains private IP’s etc.
Cisco tried to solve this almost 20 years ago by creating a SCEP protocol, but it was clumsy and tied only to one CA, which you had to first become paying customer before you could use it in devices you bought. Let’s Encrypted protocol ACME is open and much better, but it also has its limits. Because they are also required to follow CA/Browser forum rules, you could possibly if ACME was installable packet for Teltonika router or builtin feature base OS get WAN side public IP address a certificate using that. It wouldn’t solve your private IP-side router management interface certificate issues.
But if that WAN address from your network operator is DHCP given address which reverse was a generated DNS name inserted also DNS forward, you need to apply new certificate each time your DHCP issued IP is changing. It all depends your network operator how often that then would happen how much of the nuisance it would become.
If you think that this kind of issue would be solvable if network device manufacturer would either become CA themselves or try making some kind of agreement with any of the current CA/Browser Forum member CA’s which then would somehow try avoiding this kind of issues.
I’m afraid you didn’t quite understand how binding those rules are any and all of the involved parties working with CA/Browser forum as CA or their coopeating intermediate CA’s. They are not allowed to skimp or skew any of rules. Those knowinly breaking rules or even accidental mishaps have led mistrust and removal of untrusted party CA root certificates from browsers.
CA business is the business of trust. If other CAs’ and browser makers don’t trust someone there it’s end of that untrusted CAs’ business very swiftly indeed.
Right, this reply became much longer than I first thought and it’s time to wrap up this now. But just one more link to CA/Browser Forum Baseline TLS Certificates Requirements. And they have a GitHub.account also, which contains quite useful information of their working groups which can be found good to know information about future plans of changes etc.
Anyway, if you think there is a way to solve these issues described above which make it either impractical or practically impossible for device manufacturers solve these issues. Not just me but quite many would be interested to hear about your idea. So share if you have a good idea and we can see how well it flies with the rules CA/Browser forum has set.
Cheers,
riku
ps. Those thinking who am I to write you about this. I’m someone who worked about 25 years with certificates daily in my work, both enterprise MPKI context CA liaison and RA for a mid sized university. Ran and kept our own internal CA for a while and wrote tools for make our lives bit easier with this hot mess what certificates have been all these years. (And there is much much more misfeatures and issues I didn’t even touch with this whole certificate system. Not that X.509 etch PKI techical standards are bad, no they aren’t mostly but there are long standing other severe issues which hae not been solved at all too.