Step 1: Creating private keys and certificates
To improve security, create your own private key and a certificate instead of using the self-signed ones that are available in BigFix Inventory by default. You can use openSSL to create a private key and a certificate signing request (CSR) that can be transformed into a certificate after it is signed by a certificate authority (CA).
Before you begin
Remember: Use the latest OpenSSL version to create private keys
and certificates.
This procedure is valid for all operating systems that support openSSL.
If you are generating an encrypted private key in the pkcs8 format, add the
following line to the
installation_dir/wlp/usr/servers/server/java.security
file:
security.provider.14=org.bouncycastle.jce.provider.BouncyCastleProviderThen,
restart the BigFix Inventory
server.Procedure
- Open the command line.
-
Create a new private key.
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:key_strength -aes256 -out key_name.keyFor example, openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:2048 -aes256 -out inventory.key- key_name
- File name for your new private key.
- key_strength
- The key strength in bits. Note that the maximum value supported for BigFix Inventory is 2048 bits.
-
Create a certificate signing request (CSR). The request is associated with your
private key, and is later transformed into a certificate.
For example, openssl req -new -key private_key.key -out CSR.csropenssl req -new -key path_to_private_key.key -out csr_name.csrWhere:- path_to_private_key - Path to your private key.
- csr_name - File name for your certificate signing request (CSR).
After you run the command, you are asked to provide information that helps your users to identify your certificate and ensure that it can be trusted. The following excerpt from the command line is filled in with sample information. You must replace the data with actual information.Country Name (2 letter code) [XX]: US State or Province Name (full name) []: New York Locality Name (eg, city) [Default City]: New York Organization Name (eg, company) [Default Company Ltd]: HCL (eg, section) []: Software Common Name (eg, your name or your server's hostname) []: inventory.bigfix.com Email Address []: inventory@bigfix.comNote: You must also add subject alternative name (SAN) in the certificate signing request (CSR). A subject alternative name (SAN) is a method to indicate the domain names and IP addresses that are secured by the certificate. SAN in CSR is provided depending on the openSSL version.SAN is a mandatory field in many web browsers, specially in Chrome since Chrome 58 deprecation (https://developer.chrome.com/blog/chrome-58-deprecations/) and in Firefox version 101 and above.