Commit 715c20e7 authored by Filippo Mortari's avatar Filippo Mortari
Browse files

enh: Allow passing base directory for key/certs destination

parent 6175eea5
mkdir -p files/etc/ssl/{certs,private}
openssl genrsa -out files/etc/ssl/private/xnat.key 1024
openssl req -new -key files/etc/ssl/private/xnat.key -out /tmp/xnat.csr -subj "/C=US/ST=Denial/L=Springfield/O=Dis/"
openssl x509 -req -days 3650 -in /tmp/xnat.csr -signkey files/etc/ssl/private/xnat.key -out files/etc/ssl/certs/xnat.crt
mkdir -p ${basedir}/files/etc/ssl/{certs,private}
openssl genrsa -out ${basedir}/ssl/private/xnat.key 1024
openssl req -new -key ${basedir}/ssl/private/xnat.key -out /tmp/xnat.csr -subj "/C=US/ST=Denial/L=Springfield/O=Dis/"
openssl x509 -req -days 3650 -in /tmp/xnat.csr -signkey ${basedir}/ssl/private/xnat.key -out ${basedir}/ssl/certs/xnat.crt
rm /tmp/xnat.csr
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment