2.10. Using a private CA to issue certificates for CSRs with GnuTLS
To enable systems to establish a TLS-encrypted communication channel, a certificate authority (CA) must provide valid certificates to them. If you have a private CA, you can create the requested certificates by signing certificate signing requests (CSRs) from the systems.
Prerequisites
- You have already configured a private CA. See 2.7절. “Creating a private CA by using GnuTLS” for more information.
- You have a file containing a CSR. You can find an example of creating the CSR in 2.8절. “Creating a private key and a CSR for a TLS server certificate by using GnuTLS” .
Procedure
Optional: Use a text editor of your choice to prepare an GnuTLS configuration file for adding extensions to certificates, for example:
$ vi <server_extensions.cfg> honor_crq_extensions ocsp_uri = "http://ocsp.example.com"Use the
certtoolutility to create a certificate based on a CSR, for example:$ certtool --generate-certificate --load-request <example_server.crq> --load-ca-privkey <ca.key> --load-ca-certificate <ca.crt> --template <server_extensions.cfg> --outfile <example_server.crt>