13 May

Debian: There is no public key available for the following key IDs

Problem:
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://cdn-fastly.deb.debian.org/debian stretch-b
ackports InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517
W: Failed to fetch http://http.debian.net/debian/dists/stretch-backports/InRelease The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 648ACFD622F3D138 NO_PUBKEY DCC9EFBF77E11517
W: Some index files failed to download. They have been ignored, or old ones used instead.

Solution:

apt-get install debian-keyring debian-archive-keyring
27 Mar

How to renew Certificate Revocation List

If you get the following error:

VERIFY ERROR: depth=0, error=CRL has expired

it means that the Certificate Revocation List is expired and needs to be renewed. (Rationale). Here’s how you can do that.

Checking the expiration period:

openssl crl -in <strong>ca-crl.pem</strong> -text | grep 'Next Update'

To renew run:

openssl ca -gencrl -config ca.conf -out ca-crl.pem

 

To modify the interval change default_crl_days.

18 May

Vim: vim behaves as vi and drives you nuts – how to fix

For some reason vim on Debian went crazy and stopped worked as vim. This is how to make it work like vim instead of vi.

cp /usr/share/vim/vim74/vimrc_example.vim ~/.vimrc

and change

" In many terminal emulators the mouse works just fine, thus enable it.
if has('mouse')
set mouse=a
endif

to

" In many terminal emulators the mouse works just fine, thus enable it.
if has('mouse')
set mouse=r
endif

Hooray.