Author Archives: admin

Smartcard – Force reading all certificates on smartcard

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\SmartCardCredentialProvider] “ForceReadingAllCertificates”=dword:00000001 

Posted in PKI, Windows | Comments Off on Smartcard – Force reading all certificates on smartcard

Powershell Hash and Arrays

Two ways of making a table of hash tables and arrays.

Posted in Powershell | Comments Off on Powershell Hash and Arrays

Search inside Powershell scripts

Posted in Powershell | Comments Off on Search inside Powershell scripts

Generate a new pkcs12 ( p12 or pfx) from your public and private key

Start Openssl. Normally in “C:\Program Files (x86)\GnuWin32\bin” Execute openssl>pkcs12 –export –in MyCertificate.crt –inkey MyKey.key –out MyNewCert.pfx

Posted in OpenSSL | Tagged , | Comments Off on Generate a new pkcs12 ( p12 or pfx) from your public and private key

Write CSR with SAN-attributes

Openssl.cnf[ req] distinguished_name = req_distinguished_name req_extensions = v3_req [req_distinguished_name] countryName = Country Name (2 letter code) countryName_default = US stateOrProvinceName = State or Province Name (full name) stateOrProvinceName_default = MyProvince localityName = Locality Name (eg, city) localityName_default = Mycity 0.organizationName … Continue reading

Posted in OpenSSL, PKI | Tagged , , | Comments Off on Write CSR with SAN-attributes

Pass variables to Invoke-Command

Invoke-Command -ComputerName $Server -Credential $Creds -ArgumentList $Password -ScriptBlock {Param($Password) Write-Host $Password}

Posted in Powershell | Comments Off on Pass variables to Invoke-Command

Problems updating Turnkey appliance WordPress installation

When you click the update button i WordPress you come to a page where WordPress wants you to specify a ftp server. This is because faulty ownership of the WordPress files. Soloution: chown -R www-data:www-data /var/www/wordpress

Posted in Uncategorized, Wordpress | Comments Off on Problems updating Turnkey appliance WordPress installation

Windows Update fails when trying to install KB2925418 with 0x80070057 as error code

Problem: You get error 0x80070057 in Windows system event log when you try to install KB2925418 either manually or by WSUS. Installation Failure: Windows failed to install the following update with error 0x80070057: Cumulative Security Update for Internet Explorer 11 for Windows … Continue reading

Posted in Windows | Comments Off on Windows Update fails when trying to install KB2925418 with 0x80070057 as error code

Verify certificate and private key with Openssl

Openssl can be used for verifying if there is a match between a private key and certificate. Enter these commands and analyze the output. openssl x509 -noout -text -in server.crt openssl rsa -noout -text -in server.key Compare the two sections … Continue reading

Posted in OpenSSL, PKI | Comments Off on Verify certificate and private key with Openssl

Control Panels shortcuts/shortnames

Control panel tool Command —————————————————————– Add/Remove Programs       appwiz.cpl Network Properties              ncpa.cpl System Properties                sysdm.cpl

Posted in Windows | Comments Off on Control Panels shortcuts/shortnames