OpenSSL installs a default configuration file in /etc/ssl/openssl.cnf
.
The configuration defines a (boilerplate) v3_ca
section.
We can use it to generate a subordinate CA certificate request, a.k.a.,
a CSR, for Microsoft Certificate Services by executing:
openssl req -newkey 4096 -extensions v3_ca -addext 1.3.6.1.4.1.311.20.2=ASN1:PRINTABLESTRING:SubCA
ℹ️ The -addext
is the important part because it specifies the
Microsoft Certificate Services "Certificate Template"
Add -nodes
to avoid encrypting the key with a passphase
Add -keyout private/cakey.pem
to save the private key to where
/etc/ssl/openssl.cnf
expects it.
Use -out
with a path to save the CSR output.
-out $HOME/ca.req
to save the CSR to your home directory, for example.
Submit the resulting CSR to the Microsoft Certificate Services CA. It should respond the Subordinate CA certificate to download!