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.