I've got an OpenVPN setup, wherein the entire class of clients (embedded devices) share the same client certificate.
They are however distinguishable by their hostnames (which is derived from the hardware ID anyways) - I would like to be able to distinguish between them serverside, whether by assigning them different IP addresses (I know all the hostnames out there), or by assigning them different dynamic DNS entries in a zone under my control.
Either option is fine - but how do I get this information from a client into a script serverside?