create and sign a CA key and certificate using openssl

0 votes
How to create and sign a CA key and certificate using openssl For docker?
Jul 31 in Docker by Merlin
40 views

1 answer to this question.

0 votes

Execute the following commands to create and sign a certificate:

$ openssl genrsa -out ~/.docker/ca-key.pem 2048
.+++
..........................................................................................................+++
e is 65537 (0x10001)

$ openssl req -x509 -new -nodes -key ~/.docker/ca-key.pem \
    -days 10000 -out ~/.docker/ca.pem -subj '/CN=docker-CA'

$ ls ~/.docker/
ca-key.pem  ca.pem

$ sudo cp ~/.docker/ca.pem /etc/docker/ssl
answered Jul 31 by Rashi

Related Questions In Docker

0 votes
2 answers

How do I start a container and create a volume using a volume driver?

You can first create the volume and ...READ MORE

answered Aug 6 in Docker by Sirajul
• 40,980 points
42 views
0 votes
1 answer
0 votes
1 answer

What is a swarm and how to create a swarm?

A swarm consists of multiple Docker hosts ...READ MORE

answered Jul 8 in Docker by Nizam
50 views
0 votes
1 answer

How do I create a service using an image from a private registry?

Hey @Ruby, If your image is available ...READ MORE

answered Jul 8 in Docker by Sirajul
• 40,980 points
86 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,960 points
258 views
0 votes
1 answer
0 votes
1 answer

How to create a container and run images in docker?

Look for what all images you have ...READ MORE

answered Feb 22 in Docker by Kalgi
• 45,850 points
133 views