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, 2019 in Docker by Merlin
1,481 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, 2019 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, 2019 in Docker by Sirajul
• 59,190 points
2,509 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, 2019 in Docker by Nizam
2,131 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, 2019 in Docker by Sirajul
• 59,190 points
1,992 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,779 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 23, 2019 in Docker by Kalgi
• 52,340 points
3,487 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP