Some cases may require someone to create a cert/key with their own issuer which is quite an involved process right now. (and dealing with user error around SSL is a nightmare to troubleshoot..)
So this just adds a convenience nerves_hub.device cert create task to allow specifying your own --issuer and --issuer-key to be used for creating the device cert and key according to the structure and template NervesHub expects.
The NervesHub.Certificate module is pretty much ripped straight from NervesHubCA.CertificateTemplate. There is probably a better way to do this, but I think its pretty niche use-case and wanted to get something working...cause I need it 😆
Some cases may require someone to create a cert/key with their own issuer which is quite an involved process right now. (and dealing with user error around SSL is a nightmare to troubleshoot..)
So this just adds a convenience
nerves_hub.device cert create
task to allow specifying your own--issuer
and--issuer-key
to be used for creating the device cert and key according to the structure and template NervesHub expects.The
NervesHub.Certificate
module is pretty much ripped straight fromNervesHubCA.CertificateTemplate
. There is probably a better way to do this, but I think its pretty niche use-case and wanted to get something working...cause I need it 😆