Generating SSL certs with ACF: Difference between revisions

From Alpine Linux
Line 11: Line 11:
[[Installing_Alpine]]
[[Installing_Alpine]]


=== Install ACF ===
=== Install and Configure ACF ===
Run the following command:
Run the following command:
This will install the web front end to Alpine Linux, called ACF.
This will install the web front end to Alpine Linux, called ACF.
Line 26: Line 26:


Also make sure to create yourself an account.
Also make sure to create yourself an account.
=== Acf-openssl ===
Under the Applications section you should now have a Certificate Authority link. Click on this.
It should open with the Status tab. You will see a lot of red error messages.
You need to create the CA you are going to use.
This needs to be done on the alpine machine. You may already have a CA and key created.
The following command will need a password. Make sure to remember this.
<tt>openssl genrsa -des3 -out server.key 2048 </tt>
<tt>openssl req -new -key server.key -out server.csr</tt>
<tt>openssl rsa -in server.key. -out server.pem</tt>
<tt>openssl x509 -req -days 365 -in server.csr -signkey server.pem -out cacert.pem</tt>
<tt>mkdir /etc/ssl/private;mkdir /etc/ssl/req/;mkdir /etc/ssl/cert;touch /etc/ssl/serial;touch /etc/ssl/index.txt;</tt>
<tt>mv server.pem /etc/ssl/private; mv cacert.pem /etc/ssl/</tt>

Revision as of 18:31, 13 May 2009

Creating SSL certs using ACF

You are in need of creating certificate for remote persons. You might use something like openvpn or racoon for your vpn services. But wouldn't it be nice to have some sort of way to manage and view all the certs you have given to everyone? Revoke the certs? Review the certificate before you issue it? Alpine, via the ACF, has a nice web interface to use for this sort of job...

Installation Process

This will somewhat guide you through the process of creating this type of server. It is suggested to not host this on you VPN gateway but use another machine to generate your certificates.

Install Alpine

Link below to the standard document...

Installing_Alpine

Install and Configure ACF

Run the following command: This will install the web front end to Alpine Linux, called ACF.

/sbin/setup-webconf

Install acf-openssl

Browse to your computer https://ipaddr/

Login as default alpine user password test123

Click on the User Management tab and change the password.

Also make sure to create yourself an account.

Acf-openssl

Under the Applications section you should now have a Certificate Authority link. Click on this.

It should open with the Status tab. You will see a lot of red error messages.

You need to create the CA you are going to use.

This needs to be done on the alpine machine. You may already have a CA and key created.

The following command will need a password. Make sure to remember this.

openssl genrsa -des3 -out server.key 2048

openssl req -new -key server.key -out server.csr

openssl rsa -in server.key. -out server.pem

openssl x509 -req -days 365 -in server.csr -signkey server.pem -out cacert.pem

mkdir /etc/ssl/private;mkdir /etc/ssl/req/;mkdir /etc/ssl/cert;touch /etc/ssl/serial;touch /etc/ssl/index.txt;

mv server.pem /etc/ssl/private; mv cacert.pem /etc/ssl/