Table of Contents

Search

  1. Preface
  2. Introduction to API Manager
  3. API management
  4. Organizational access policies
  5. API-specific policies
  6. API groups
  7. Authentication and authorization
  8. API Microgateway Service
  9. Analytics

API Manager Guide

API Manager Guide

Generating SSL certificate for the API Microgateway

Generating SSL certificate for the API Microgateway

Perform the following steps to generate a new SSL certificate and PEM file for the API Microgateway:
  1. Install OpenSSL on the organization's Secure Agent machine, if it is not already installed. Open OpenSSL.
  2. Generate an RSA key (size: 2048). Output the RSA key to a file named
    mydomain.key
    , using the command:
    openssl genrsa -out mydomain.key 2048
    If you change the
    mydomain.key
    file name, you must also change the
    haproxy.cfg
    file in the Agent Data folder,
    data\apimgw_docker\haproxy
    , to reflect the corresponding file name.
  3. Generate a certificate signing request using the command:
    openssl req -new -key mydomain.key -out mydomain.csr
  4. Generate a signed certificate using the command:
    openssl x509 -req -days 730 -in mydomain.csr -signkey mydomain.key -out mydomain.crt
  5. Create a certificate package using the command:
    bash -c 'cat mydomain.key mydomain.crt >> <dir>/mydomain.pem'
  6. When you receive the SSL certificate, copy and paste the contents of the certificate file into the PEM file containing the RSA key. The certificate file name must be
    mydomain.pem

0 COMMENTS

We’d like to hear from you!