Monthly Archive: June 2016

Create a P7B certificates bundle 0

Create a P7B certificates bundle

P7B certificates file can contain one or more certificates and a revocation list. The difference with P12 (PKCS#12), P7B (PKCS#7) cannot contain private keys. To create a P7B file Assuming you have frank.pem and...

Create a DER encoded X509 certificate 0

Create a DER encoded X509 certificate

Two types of X509 certificates There are base64 encoded certificates which look like -----BEGIN CERTIFICATE----- MIIFcDCCA1gCAhAAMA0GCSqGSIb3DQEBCwUAMHExCzAJBgNVBAYTAkdCMRAwDgYD (...) lcH2kxKqa1CWUQGz3S9raNtesOI7jbO9d2HRVPPTPVTliHukS8tlBouq5tU6IFgH I61lVg== -----END CERTIFICATE----- Then there are DER encoded certificates which look like To convert base64 to...

String manipulations in Javascripts 0

String manipulations in Javascripts

String.indexOf() Return value: -1 if not found 0 or higher than 0 as the index of the position found Remove one part of a string Method 1: String.replace(//, ""); Method 2: var indexEnd =...

Create an intermediate CA 0

Create an intermediate CA

First step is required. If you don't I wrote the instructions to setup a root CA. 1. Create folders (you are free to choose where) and add basic files: cd /etc/pki/tls/ mkdir intermediate-ca cd intermediate-ca...