Top Poster
#1 ramon fincken 392
#2 Site admin 3
#3 Ber|Art 2
#4 braddmark 1
#5 accentmedia 1
#6 Xarzu 1
#7 pEcosespedex 1
#8 khadish 1
#9 moxxx 1
#10 nistelrock 1

The time now is Sun Dec 16, 2018 1:33 pm
Ramonfincken.com Forum Index
View unanswered posts
letsencrypt CertStorageError: renewal config file {} is missing a required file reference
Author ramon fincken :: Posted: Tue Aug 07, 2018 8:13 am :: Category: Bash, perl, python and CLI linux


Seeing
Code:
WARNING:letsencrypt.cli:Renewal configuration file /etc/letsencrypt/renewal/*.conf is broken. Skipping. and
Additionally, the following renewal configuration files were invalid: /path/to/conf (parsefail)


Use this and create a backup first of /etc/letsencrypt/renewal
Note that this does not work for subdomains. Only for www.domain.ext && domain.ext

Create /tmp/workingtemplate as template based on a working conf file in /etc/letsencrypt/renewal

example
Code:
# renew_before_expiry = 30 days
version = 0.26.1
archive_dir = /etc/letsencrypt/archive/THEDOMAIN
cert = /etc/letsencrypt/live/THEDOMAIN/cert.pem
privkey = /etc/letsencrypt/live/THEDOMAIN/privkey.pem
chain = /etc/letsencrypt/live/THEDOMAIN/chain.pem
fullchain = /etc/letsencrypt/live/THEDOMAIN/fullchain.pem

# Options used in the renewal process
[renewalparams]
account = YOURACCOUNTHERE
server = https://acme-v02.api.letsencrypt.org/directory
authenticator = webroot
rsa_key_size = 4096
webroot_path = /www/letsencrypt,
[[webroot_map]]
THENOWWWDOMAIN = /www/letsencrypt
THEDOMAIN = /www/letsencrypt



now use this and kick off your renewal process
Note, this list is created using a grep on '0 Aug'. Make sure to adapt that using
Code:
cd /etc/letsencrypt/renewal && ls -lah



Code:
workingtemplate=/tmp/workingtemplate
cd /etc/letsencrypt/renewal

mylist=`ls -lah | grep '    0 Aug' | awk '{print $9}'`

IFS_BAK=$IFS
IFS='
'
count=0
for domainfile in $mylist
do
   count=$((count+1))
   domainshort=${domainfile/.conf/}
   domainshortnowwww=${domainshort/www./}
   echo $count $domainshort

   cat $workingtemplate | sed -r s/THENOWWWDOMAIN/${domainshortnowwww}/g  | sed -r s/THEDOMAIN/${domainshort}/g > ${domainfile}
done

IFS=$IFS_BAK


[solution] Only allow cloudflare IP to my server
Author ramon fincken :: Posted: Sat Jul 28, 2018 5:59 pm :: Category: HTML and other markup&programming languages


Based on apache htaccess.

Code:
###
# https://www.cloudflare.com/ips/
# https://www.cloudflare.com/ips-v4
# https://www.cloudflare.com/ips-v6

#[solution] Only allow cloudflare IP to my server
#Permalink: http://www.ramonfincken.com/permalink/topic448.html

Deny from all

Allow from 103.21.244.0/22
Allow from 103.22.200.0/22
Allow from 103.31.4.0/22
Allow from 104.16.0.0/12
Allow from 108.162.192.0/18
Allow from 131.0.72.0/22
Allow from 141.101.64.0/18
Allow from 162.158.0.0/15
Allow from 172.64.0.0/13
Allow from 173.245.48.0/20
Allow from 188.114.96.0/20
Allow from 190.93.240.0/20
Allow from 197.234.240.0/22
Allow from 198.41.128.0/17

Allow from 2400:cb00::/32
Allow from 2405:8100::/32
Allow from 2405:b500::/32
Allow from 2606:4700::/32
Allow from 2803:f800::/32
Allow from 2c0f:f248::/32
Allow from 2a06:98c0::/29


# https://www.cloudflare.com/ips/
# https://www.cloudflare.com/ips-v4
# https://www.cloudflare.com/ips-v6


[solution] How to see google tag manager data in google analytics
Author ramon fincken :: Posted: Tue Apr 10, 2018 8:07 am :: Category: HTML and other markup&programming languages


Did you create google tag manager tags? And triggers? Combine them with google analytics first.

Now make sure your GTM tag track type is "Event".
This will allow you to see hits in Google analytics on the Real time tab -> Events.

Note: I am not a GTM expert, but this is the only way I found to actually show the data.
A fine tutorial can be found here: https://johannesmehlem.com/blog/google-...g-manager/ and https://parall.ax/blog/view/3236/tutori...onversions


Google Tag manager





Google analytics





[SOLUTION] pfx to crt
Author ramon fincken :: Posted: Thu Apr 05, 2018 6:44 pm :: Category: Bash, perl, python and CLI linux


Code:
openssl pkcs12 -in [file.pfx] -clcerts -nokeys -out [certificate.crt]


Autostart kodi on raspberry pi
Author ramon fincken :: Posted: Fri Mar 23, 2018 10:09 am :: Category: Bash, perl, python and CLI linux


sudo edit
/etc/default/kodi

set enabled =1
set user = pi

no kodi autostart after reboot?
set your graphics memory to 128 MB


What is X-Redirect-Agent header?
Author ramon fincken :: Posted: Thu Jan 25, 2018 7:25 am :: Category: CMS-ses (Joomla, WordPress, etc..)


If your WordPress curl
Code:
curl -v https://www.domain.com/page/


Results in this header
Code:
X-Redirect-Agent: redirection
then the plugin Redirection is active , check your redirects in WP-admin!

[CURL] Time for request
Author ramon fincken :: Posted: Sun Sep 17, 2017 7:51 am :: Category: Bash, perl, python and CLI linux
Tagged: , , , , ,


When not using apachebench use this

Code:
curl -o /dev/null -s -w %{time_total}\\n  http://www.google.com


Source:
https://viewsby.wordpress.com/2013/01/0...with-curl/


[solution] laravel commandline auto yes seed artisan migrate
Author ramon fincken :: Posted: Sat May 13, 2017 8:26 am :: Category: PHP coding


use expect to answer "yes" to all questions, handy if you script your deploys remotely

Code:
!/usr/bin/expect -f
set timeout -1
spawn php artisan migrate:refresh --seed
match_max 1000000
expect "*you really*" { send "yes\r" }
expect "*you really*" { send "yes\r" }
expect "*you really*" { send "yes\r" }
expect "*you really*" { send "yes\r" }
expect eof


call

Code:
expect yourscript.sh


All times are GMT
Who is Online
Who is Online Our users have posted a total of 398 articles
We have 26 registered users
The newest registered user is MathewCow
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest   [ Administrator ]   [ Moderator ]
Most users ever online was 41 on Wed Sep 09, 2015 1:34 am
Registered Users: None
This data is based on users active over the past five minutes
Log in
Username:    Password:      Log me on automatically each visit    

New posts New posts    No new posts No new posts    Forum is locked Forum is locked
General forums
The world of freelance
Programming
Other projects
Poll
I love gifts

Yes goodies and presents! [3]
No but I love polls ! [1]

Related google ads