How to add an Enhanced Key usage to a csr using OpenSSL

Viewed 14

I'm trying to generate a Certificate for AMT activation, and I will install that in MeshCentral. How can I add the OID 2.16.840.1.113741.1.2.3 to the Enhanced Key usage?

openssl req -new -out amtActivation.csr -newkey rsa:2048 -nodes -sha256 -keyout amtActivation.key -config amtActivation.cnf

amtActivation.csr:

[req]
distinguished_name = req_distinguished_name
req_extensions = v3_req

prompt = no

[req_distinguished_name]

C=US

ST=OH

L=Westerville

O= ExampleOrg

CN = meshcentral.test.net

[v3_req]

keyUsage = keyEncipherment, dataEncipherment

extendedKeyUsage = serverAuth

subjectAltName = @ alt_names

[alt names]

DNS.1 = meshcentral.test.net
0 Answers
Related