2 .\" makecert manual page.
3 .\" Copyright 2003 Motus Technologies
4 .\" Copyright 2004 Novell
6 .\" Sebastien Pouliot (sebastien@ximian.com)
10 MakeCert \- Create X.509 certificates for test purposes
13 .B makecert [options] certificate
15 Create an X.509 certificate using the provided informations. This
16 is useful for testing Authenticode signatures, SSL and S/MIME
21 Specify the certificate serial number.
24 Specify the subject Distinguished Name (DN).
27 Specify the issuer Distinguished Name (DN).
30 Create a self-signed, also called root, certificate.
33 Specify the private key file (.PVK) for the issuer. The private key in the
34 specified file will be used to sign the new certificate.
37 Extract the issuer's name from the specified certificate file - i.e. the
38 subject name of the specified certificate becomes the issuer name of the
42 Use the issuer's name from the specified parameter.
45 Specify the key container name to be used for the issuer.
47 .I "-iky [signature | exchange | #]"
48 Specify the key number to be used in the provider (when used with -ik).
51 Specify the cryptographic provider to be used for the issuer.
53 .I "-ir [localmachine | currentuser]"
54 Specify the provider will search the user or the machine keys containers for
58 Specify the provider type to be used for the issuer.
61 Specify the private key file (.PVK) for the subject. The public part of the
62 key will be inserted into the created certificate. If non-existant the
63 specified file will be created with a new key pair (default to 1024 bits RSA
67 Specify the key container name to be used for the subject.
69 .I "-sky [signature | exchange | #]"
70 Specify the key number to be used in the provider (when used with -sk).
73 Specify the cryptographic provider to be used for the subject.
75 .I "-sr [localmachine | currentuser]"
76 Specify the provider will search the user or the machine keys containers for
80 Specify the provider type to be used for the issuer.
83 Select hash algorithm. Only MD5 and SHA1 algorithms are supported.
86 The date since when the certificate is valid (notBefore).
89 The date until when the certificate is valid (notAfter).
92 Specify the certificate validity period in months. This is added to the
93 notBefore validity date which can be set with -b or will default to the
96 .I "-cy [authority|end]"
97 Basic constraints. Select Authority or End-Entity certificate. Only Authority
98 certificates can be used to sign other certificates (-ic). End-Entity can
99 be used by clients (e.g. Authenticode, S/MIME) or servers (e.g. SSL).
102 Add a path length restriction to the certificate chain. This is only
103 applicable for certificates that have BasicConstraint set to Authority (-cy
104 authority). This is used to limit the chain of certificates than can be
105 issued under this authority.
108 Add some extended key usage OID to the certificate.
111 Help (display this help message)
114 Extended help (for advanced options)
117 To create a SSL test (i.e. non trusted) certificate is easy
118 once your know your host's name. The following command will create a
119 test certificate for an SSL server:
124 $ makecert -r -eku 1.3.6.1.5.5.7.3.1 -n "CN=pollux" -sv pollux.pvk pollux.cer
128 In particular in the above example, the parameters used to build this
129 test certificate were:
132 Create a self-signed certificate (i.e. without an hierarchy).
134 .I "-eku 1.3.6.1.5.5.7.3.1"
135 Optional (as sadly most client don't require it). This indicates that
136 your certificate is intended for server-side authentication.
138 .I "-n \"CN=pollux\""
139 Common Name (CN) = Host name. This is verified the SSL client and must
140 match the connected host (or else you'll get a warning or error or
144 The private key file. The key (1024 bits RSA key pair) will be
145 automatically generated if the specified file isn't present.
148 The SSL certificate to be created for your host.
149 .SH KNOWN RESTRICTIONS
150 Compared to the Windows version some options aren't supported (-$, -d, -l,
151 -nscp, -is, -sc, -ss). Also PVK files with passwords aren't supported.
153 Written by Sebastien Pouliot
155 Copyright (C) 2003 Motus Technologies.
156 Copyright (C) 2004 Novell.
157 Released under BSD license.
159 Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details.
161 Visit http://www.mono-project.com for details