Importing and configuring a certificate
Importing and configuring a certificate
One option to use certificates in Zowe is to import and configure existing certificates. Use the procedure that applies to the type of certificate you wish to import.
Choose from the following certificate importing options:
- Importing a file-based PKCS12 certificate
- Importing a JCERACFKS certificate
- Importing a certificate stored in an MVS data set into a Zowe key ring.
Importing an existing PKCS12 certificate
To import a PKCS12 certificate, it is first necessary to import a certificate authority (CA). There are two options for importing a CA:
- Manually importing a certificate authority into a web browser
- Importing a local CA certificate on Linux
Once you have imported your CA, you can configure the zowe.yaml according to Scenario 2: Use a file-based (PKCS12) keystore and import a certificate generated by another CA described in the article Certificate configuration scenarios.
For PKCS12 certificate users, specify the following parameters in the zowe.yaml
file:
Parameter | Description |
---|---|
zowe.setup.certificate.pkcs12.import.keystore | Specify this parameter if you acquired one or more certificates from another CA, stored them in PKCS12 format, and now want to import the certificate(s) into the Zowe PKCS12 keystore. |
zowe.setup.certificate.pkcs12.import.password | Specify this password value for the keystore defined in zowe.setup.certificate.pkcs12.import.keystore . |
zowe.setup.certificate.pkcs12.import.alias | This value is the original certificate alias defined in zowe.setup.certificate.pkcs12.import.keystore . |
zowe.setup.certificate.pkcs12.name | The imported certificate is saved under the alias specified in it. |
Configure zowe.yaml
for a PKCS12 certificate:
zowe:
setup:
certificate:
type: PKCS12
pkcs12:
directory: /var/zowe/keystore
lock: true
name: localhost # Optional, default value is localhost.
password: password # Optional, default value is password.
import:
keystore: ""
password: ""
alias: ""
importCertificateAuthorities:
- ""
Due to the limitation of the RACDCERT command, the importCertificateAuthorities
field can contain a maximum of two entries.
You can now use your imported PKCS12 certificate. See next steps.
Importing a certificate Authority (CA)
Importing a certificate authority (CA) is a prerequisite to importing a PKCS12 certificate. Use the method that applies to your use case.
- Manually importing a certificate authority into a web browser
- Importing a local CA certificate on Linux