How to create and import a Microsoft subordinate certificate authority (Sub CA) for Skyhigh Web Gateway
Technical Articles ID:
KB75037
Last Modified: 2023-12-13 10:55:48 Etc/GMT
Environment
Skyhigh Web Gateway (SWG)
Summary
The following procedures describe how to create a subordinate certification authority (Sub CA) from a Microsoft CA, for use by the SWG SSL Scanner function.
NOTES:
- The following procedures assume that you’re using Internet Explorer as your browser. The steps might vary if you’re using a different browser.
- We strongly recommend that you read the entire article before starting the process.
Create the subordinate certificate authority
- Open the Certificate Authority page, which is typically http://<server address>/certsrv.
- Click Request a Certificate.
- Click Advanced Certificate Request.
- Click Create and submit a request to this CA.
- Fill in the requested information for the Certificate:
- Make sure that you select Subordinate Certification Authority in the Certificate Template drop-down list.
- Fill in all identifying information in the first section, such as name, email, company, department, city, state, and country.
- Under the Key Options section, make sure that you set the key size to a minimum of 2048.
- Make sure the checkbox for Mark keys as exportable is selected.
- Click Submit to submit the request.
- Click Install this Certificate, and install the certificate on your workstation.
Export the certificate
- From Internet Explorer, go to Tools, Internet Options, Content tab, and click Certificates. The certificate you import appears under the Personal tab.
- Select it, and click Export. The Certificate Export wizard starts.
- Complete the Certificate Export wizard:
- Click Next at the first certificate screen.
- Click Yes, export the private key, and click Next.
- Select Include certificates in the certification path if possible and Enable strong protection. Click Next.
IMPORTANT: For newer versions of Windows, Enable strong protection might not be available.
Instead, select Include certificates in the certification path if possible and Enable Certificate Privacy.
- Enter a password, which is to be used when importing on the SWG, and click Next.
- Enter a file name, and specify where to save the file. It’s saved with a .pfx extension.
Export the PEM certificate and keyfile from the .pfx file
- Upload the .pfx file that you created in the previous steps to a computer with OpenSSL installed.
NOTE: This example assumes that you're using SWG, which has OpenSSL installed.
- Using WinSCP or a similar file transfer application, transfer the file to SWG, and note the directory to which you upload it.
- Export the files using the following commands:
NOTE: These steps assume your .pfx file name is WebGateway.pfx. Substitute your actual file name.
- To export the PEM certificate, use the following command: openssl pkcs12 -in WebGateway.pfx -nokeys -out WebGateway.crt
- When prompted, enter the same password that you specified earlier. You see the status message MAC verified OK, which indicates that the .crt file is generated.
- To export the keyfile, use the following command: openssl pkcs12 -in WebGateway.pfx -cacerts -nodes -out WebGateway.pem
- When prompted, enter the same password that you specified earlier. You see the status message MAC verified OK, which indicates that the .crt file is generated.
- To clean up the files and get them in the correct format for SWG, run the following commands from the SWG command line:
- To generate a clean certificate: openssl x509 -in WebGateway.crt -out SubCA-cert.pem
- To generate a clean private key: openssl rsa -in WebGateway.pem -out SubCA-key.pem
- Optional: To generate a clean chain file: cat RootCA-cert.pem \SubCA-cert.pem > chain.pem
NOTE: You must import all certificates into the chain. Do not import any private keys.
- Copy the newly generated files from the SWG file system to your workstation, using WinSCP or a similar file transfer application.
Import the Sub CA files into SWG
- Log on to the SWG web interface. Navigate to Policy, Settings, SSL Client Context with CA.
- Select the Default CA or the CA you want to import this certificate on, and then click Import on the right side of the screen:
- In the Certificate field, point SWG to the SubCA-cert.pem file that's generated in the last section.
- In the Private Key field, point SWG to the SubCA-key.pem file that's generated in the last section.
- Leave the Password field empty, unless you've protected the private key with a new password in the last section.
- In the Certificate Chain field, point SWG to the chain.pem file that's generated in the last section.
- Click OK. Your new CA is imported on SWG.
|