Security

Wireless / WiFi

Crypto

Hacking

Communication

Safer alternatives for Skype:

Mobile

Authentication

Two-factor authentication

Spectre and Meltdown attacks

NFC-платежи

HTML

SSL

Solutions:

SSL Certificate Authorities

KeePass

PGP

How to force GPG to read passphrase from console?

It should be mentioned that this extra security measure was implemented in GPGv2 to be sure that user input is not intercepted. From maillist:

It should be noted however that such behaviour trades convenience for security. That is because an X window provided by GTK/QT pinentries is able to grab input globally, whereas pinentry-curses is not. It would be therefore possible for a malicious application to hijack and record passphrase being given to pinentry curses in X terminal.

To disable the pinentry GUI window:

Alternatively one can download GPGv1 CLI from this FTP site (e.g. gnupg-w32cli-1.4.18.exe).

See also GPG key management operations via the agent considerations.

GPG agent log entries

In cron log the following shows up on every opened SSH session:
systemd[10575]: Closed GnuPG network certificate management daemon.
systemd[10575]: Closed GnuPG cryptographic agent (access for web browsers).
systemd[10575]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
systemd[10575]: Closed GnuPG cryptographic agent (ssh-agent emulation).
systemd[10575]: Stopped target Timers.
systemd[10575]: Closed GnuPG cryptographic agent and passphrase cache.

Use the following command to disable GPG agent (taken from bug#850982):

systemctl --global mask --now gpg-agent.service gpg-agent.socket gpg-agent-ssh.socket gpg-agent-extra.socket gpg-agent-browser.socket

See also /usr/share/doc/gnupg-agent/README.Debian.

PDF

How to digitally sign PDF?

From Digitally signing PDF files:
  • Convert PEM certificate to PFX format:
    openssl pkcs12 -export -in cert.pem -out cert.pfx
  • Download PortableSigner
  • :OPT: Merge all JARs into one uberjar. As JCE provider JARs must be signed, all the following to jre\lib\security\java.security (ordering may vary):

    java.security

    security.provider.11=org.bouncycastle.jce.provider.BouncyCastleProvider

    otherwise execution will fail with the following message:

    Error reading certificate (wrong password)
            error constructing MAC: java.lang.SecurityException: JCE cannot authenticate the provider BC
    Error creating keystore
            error constructing MAC: java.lang.SecurityException: JCE cannot authenticate the provider BC
  • Run
    java -jar PortableSigner.jar -n -t input.pdf -o output.pdf -s cert.pfx -p secret_password -c "Final revision" -r "Approved for publication" -l "Department of public relations"

Alternatively one can use LibreOffice v5.3 or higher:

  • LibreOffice uses Firefox or Thunderbird profile to lookup for personal certificates, see Applying Digital Signatures concerning how to import one.
  • Choose File → Digital Signatures → Sign Existing PDF, select PDF, then click on Sign Document on appeared notice message.
  • Click on Sign Document, click Sign Document… in the bottom of the dialog, select certificate, click OK. Click Close to close Digital signatures dialog – PDF document is written back.

See also:

Kaspersky antivirus

Mentioned also in:

2010/02/13 23:22  
2015/04/26 06:25  
2010/02/13 23:22  
2010/02/13 23:22  
2010/02/13 23:22  

How to disable notification about registration?

From Напоминание о регистрации:

Run one of the reg files below with self-protection off and then reboot:

For 64-bit systems:

REGEDIT4
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\KasperskyLab\protected\AVP14.0.0\OlaFormScheduler]
"enabled"=dword:0

For 32-bit systems:

REGEDIT4
 
[HKEY_LOCAL_MACHINE\SOFTWARE\KasperskyLab\protected\AVP14.0.0\OlaFormScheduler]
"enabled"=dword:0

Activation code is invalid for this region

Solution:



1) All certificates are listed here