Strona główna / Społeczność / Blog / My own self-signed CA

My own self-signed CA

Edit /etc/pki/tls/openssl.cnf file and change in CA_default section, of course You have to adopt it, ie. change name to yours ;-):

because, I've changed default directory I have to create some files and directories:

Generate self-signed CA certificate for 5 years (5*365=1825 days):

It's very important to remember password! You will need them for 5 years every time you will generate certificate.

Generate first certificate:

In most cases you have to provide only Common Name. Now you have new vpn.crs (certificate signing request) file.

Sign it:

Of course you have to enter CA password.

You have to revoke old certificate if you want to generate new certificate with same Common Name. To revoke certificate use command:

That's all.

To convert data to human readable data:

  • Certificate Signing Request (CSR)
  • Private key
  • Certificate

Komentarze

Log in or create a user account to comment.

Ten kto umie pisze kod, ten kto nie umie pisze książki..., albo blog.

Pon Wt Śr Czw Pt So N
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30