Here are the commands I used to do this:
openssl x509 -req -trustout -signkey ca.key -days 365 -req -in ca.csr -out ca.pem echo "02" > ca.srl keytool -genkey -alias crushftp -keyalg RSA -keysize 512 -keystore crush.keystore -storepass password
keytool -certreq -keyalg RSA -alias crushftp -file crushftp.csr -keystore crush.keystore -storepass password openssl x509 -CA ca.pem -CAkey ca.key -CAserial ca.srl -req -in crushftp.csr -out crushftp.crt -days 365 keytool -import -alias crushftp_ca -keystore crush.keystore -trustcacerts -file ca.pem -storepass password
keytool -import -alias crushftp -keystore crush.keystore -file crushftp.crt -storepass password
keytool -import -alias crushftp_ca -keystore crush.keystore_trust -trustcacerts -file ca.pem -storepass password
openssl req -newkey rsa:512 -nodes -out myuser.req -keyout myuser.key
openssl x509 -CA ca.pem -CAkey ca.key -CAserial ca.srl -req -in myuser.req -out myuser.pem -days 365 openssl pkcs12 -export -clcerts -in myuser.pem -inkey myuser.key -out myuser.p12 -name "myuser_certificate"
Now from here on, I just generate new signed certs for my clients: (making sure I give them valid common names that match usernames in CrushFTP.)
openssl req -newkey rsa:512 -nodes -out myuser.req -keyout myuser.key
openssl x509 -CA ca.pem -CAkey ca.key -CAserial ca.srl -req -in myuser.req -out myuser.pem -days 365 openssl pkcs12 -export -clcerts -in myuser.pem -inkey myuser.key -out myuser.p12 -name "myuser_certificate"
I will probably implement this for FTP too......but there is only one client that current can do it.
Add new attachment
List of attachments
Kind | Attachment Name | Size | Version | Date Modified | Author | Change note |
---|---|---|---|---|---|---|
jpg |
Clipboard01.jpg | 262.2 kB | 1 | 29-Dec-2020 05:25 | Ada Csaba | |
jpg |
Clipboard02.jpg | 50.9 kB | 1 | 29-Dec-2020 05:25 | Ada Csaba | |
jpg |
Clipboard03.jpg | 93.9 kB | 1 | 29-Dec-2020 05:25 | Ada Csaba | |
jpg |
Clipboard04.jpg | 281.0 kB | 1 | 29-Dec-2020 05:25 | Ada Csaba | |
jpg |
Clipboard05.jpg | 157.8 kB | 1 | 29-Dec-2020 05:25 | Ada Csaba | |
jpg |
Clipboard06.jpg | 176.1 kB | 1 | 29-Dec-2020 05:25 | Ada Csaba | |
jpg |
Clipboard07.jpg | 153.7 kB | 1 | 29-Dec-2020 05:25 | Ada Csaba | |
jpg |
Clipboard08.jpg | 180.0 kB | 1 | 29-Dec-2020 05:25 | Ada Csaba | |
jpg |
Clipboard09.jpg | 73.7 kB | 1 | 29-Dec-2020 05:25 | Ada Csaba | |
jpg |
Clipboard10.jpg | 118.9 kB | 2 | 29-Dec-2020 05:25 | Ada Csaba | |
jpg |
Clipboard11.jpg | 118.9 kB | 1 | 29-Dec-2020 05:25 | Ada Csaba |