cURL OpenSSL error error:0308010C:digital envelope routines::unsupported

Meta: this isn’t really programming or development, and would probably be better on superuser or maybe security.SX, but this is issue is likely to become more common as OpenSSL 3.0 spreads and I wanted to get the answer out. OpenSSL 3.0.x (and up) by default doesn’t support old/insecure algorithms, but until recently most software that … Read more

Need help converting P12 certificate into JKS

If you do have Keytool application and your PKCS#12 file, launch the one-line command: keytool -importkeystore -srckeystore [MY_FILE.p12] -srcstoretype pkcs12 -srcalias [ALIAS_SRC] -destkeystore [MY_KEYSTORE.jks] -deststoretype jks -deststorepass [PASSWORD_JKS] -destalias [ALIAS_DEST] You’ll need to modify these parameters: MY_FILE.p12: indicate the path to the PKCS#12 file (.p12 or .pfx extension) to be converted. MY_KEYSTORE.jks: path to the … Read more

What is the difference between a PKCS12 keystore and a PKCS11 keystore?

PKCS#12 is a file format (often called .p12 or .pfx) where you can store a private key and certificates. It’s used for converting/transporting keys and certificates, mainly. If you export a private key + certificate from your browser, it’s likely going to be in that format. PKCS#11 is an interface, usually used to talk to … Read more

How can constructing an X509Certificate2 from a PKCS#12 byte array throw CryptographicException(“The system cannot find the file specified.”)?

Do you have PKCS#12 or just PFX-file? In the Microsoft world it is the same, but other think another (see this archived page). You can try just following X509Certificate2 cert = X509Certificate2(byte[] rawData, “password”); X509Certificate2 cert2 = X509Certificate2(byte[] rawData, “password”, X509KeyStorageFlags.MachineKeySet | X509KeyStorageFlags.PersistKeySet | X509KeyStorageFlags.Exportable); (X509Certificate2(Byte[])) or X509Certificate2 cert = X509Certificate2(“C:\Path\my.pfx”, “password”); (see X509Certificate2(String, String) … Read more

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