Skip to content
Snippets Groups Projects
Commit de247631 authored by Magnus Toneby's avatar Magnus Toneby
Browse files

create some certificates

parent 166fc73f
No related branches found
No related tags found
2 merge requests!4Test->production,!3Devel->Test
Pipeline #129816 passed
......@@ -7,13 +7,13 @@ class folioscripts::foliofront {
$basedir='/opt/liu/foliofront'
exec { 'create private key for':
creates => 'privatekey.pem',
command => '/bin/openssl genrsa -out privatekey.pem 2048',
creates => "${$basedir}/privatekey.pem",
command => "/bin/openssl genrsa -out ${$basedir}/privatekey.pem 2048",
}
exec { 'create cert for':
creates => 'saml-cert.pem',
command => '/bin/openssl req -new -x509 -key privatekey.pem -out saml-cert.pem -days 3650',
creates => "${$basedir}/saml-cert.pem",
command => "/bin/openssl req -new -x509 -key ${$basedir}/privatekey.pem -out saml-cert.pem -days 3650",
require => [Exec['create private key for'],],
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment