secure-access-configure-admin-api-loopback-with-ssl

Overview: Creating an SSL certificate

When creating an SSL certificate to use with Kong plugin, make sure you create one that is compatible with NGINX.

There are different ways of getting an SSL certificate, below you can find some easy steps to create a self-signed certificate.

##Configurations

1. Let’s create the private server key

openssl genrsa -des3 -out server.key 2048

2. Now we create a certificate signing request

openssl req -new -key server.key -out server.csr -sha256

3. Remove the passphrase

cp server.key server.key.org
openssl rsa -in server.key.org -out server.key

4. Signing the SSL certificate

openssl x509 -req -in server.csr -signkey server.key -out server.crt -sha256

Summary

Great! You should now have a certificate named server.crt , and a key named server.key.

You can now use this certificate and key on Kong to secure your API

Edit this page