OpenSSL as a CA without touching the certs/crl/index/etc environment

I don’t know of any “don’t bother” options, but here is how you can setup a quick demo CA: #!/bin/bash CAROOT=/path/to/ca mkdir -p ${CAROOT}/ca.db.certs # Signed certificates storage touch ${CAROOT}/ca.db.index # Index of signed certificates echo 01 > ${CAROOT}/ca.db.serial # Next (sequential) serial number # Configuration cat>${CAROOT}/ca.conf<<‘EOF’ [ ca ] default_ca = ca_default [ ca_default … Read more

“The password you entered is incorrect” when importing .pfx files to Windows certificate store

I ran into the same problem with OpenSSL 3 and Windows Server 2012 R2. However, I eventually put together the correct combination of parameters. This seems to work: openssl pkcs12 -export -certpbe PBE-SHA1-3DES -keypbe PBE-SHA1-3DES -nomac -inkey contoso.com.key -in contoso.com.crt -out contoso.com-legacy.pfx

How do I create an ECDSA certificate with the OpenSSL command-line

If you haven’t chosen a curve, you can list them with this command: openssl ecparam -list_curves I picked secp256r1 for this example. Use this to generate an EC private key if you don’t have one already: openssl ecparam -out ec_key.pem -name secp256r1 -genkey And then generate the certificate. Your certificate will be in cert.pem. openssl … Read more

How do I use SANs with openSSL instead of common name?

You may need the -addext flag. For example: openssl req -new -key certs/foo-bar.pem \ -subj “/CN=foobar.mydomain.svc” \ -addext “subjectAltName = DNS:foobar.mydomain.svc” \ -out certs/foo-bar.csr \ -config certs/foo-bar_config.txt Got the answer from here: https://security.stackexchange.com/questions/74345/provide-subjectaltname-to-openssl-directly-on-the-command-line

Comments in a pem file

Anything outside —–BEGIN FOO—– and —–END FOO—– should be ignored by OpenSSL. This behavior is commonly used to e.g. embed an entire human-readable detailed description of the cert in the PEM file itself, so that anyone reading it can see what it encodes without having to invoke openssl x509 … on it.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)