LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-12-2019, 07:03 PM   #1
mirek_adept
LQ Newbie
 
Registered: May 2019
Location: Poland
Posts: 4

Rep: Reputation: Disabled
easy-rsa building CA takes a short time


To build PKI and vpn on my linux home server I use OpenVpn and easy-rsa packages.
I start with easyrsa init-pki.
Then I use easyrsa build-ca. This step takes a short time /up to one second/. One of next step is easyrsa gen-dh. It takes about 3 minutes. I think it is OK, but why easyrsa build-ca is so fast operation? It must make time-consuming calculations (generate two huge primary numbers etc). My home /laboratory/ server is based on simple desktop computer with cheap Intel Core processor. Each generated files looks quite good.

adept
 
Old 05-14-2019, 10:26 PM   #2
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,784

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
Quote:
Originally Posted by mirek_adept View Post
Then I use easyrsa build-ca. This step takes a short time /up to one second/. One of next step is easyrsa gen-dh. It takes about 3 minutes. I think it is OK, but why easyrsa build-ca is so fast operation?
For RSA of size 2048 bit (for example), you just need two random primes of size 1024. For DH of size 2048, you need a random prime of size 2048 and a corresponding generator with a prime order. So for DH you need to generate larger primes, and you might need to throw away some primes that don't have the right properties.

Although really, for DH you can just use pre-generated standard domains, e.g., https://tools.ietf.org/html/rfc3526.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RSA SecurID: RSA Web Agent, integration of RSA auth page Linux_Kidd General 1 08-28-2013 05:59 PM
C: Literal for 'short', and 'unsigned short' Aquarius_Girl Programming 2 08-25-2011 09:00 AM
Heartbeat - secondary node takes over for a short time only! pyruby Linux - Newbie 3 11-26-2009 03:07 AM
Benchmarking a tape drive, time to copy takes forever, time to append takes longer? jeriryan Linux - Hardware 2 06-15-2008 12:15 AM
LXer: eCos real-time OS makes short work of building a SAN appliance LXer Syndicated Linux News 0 11-29-2007 02:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration