Can't verify CA certificate unless CApath or CAfile used
Tag : ubuntu , By : Scott Everts
Date : March 29 2020, 07:55 AM
To fix this issue Im having trouble with having OpenSSL connect to a server because of trust issues. I placed the CA certificate on /etc/ssl/certs/ and have run sudo c_rehash and can see that the correct file has been made. I can see that CA certificate is in the ca-certificates.crt. However if I run: , OpenSSL connect to a server because of trust issues.
|
How to specify CAFile path inline with the GIT command?
Tag : git , By : Frank Bradley
Date : March 29 2020, 07:55 AM
wish helps you c:/your/path/to/cacert-client.pem should work ,supposing that the '/../' in your question stands for your/path/to (otherwise c:/../xx points to a non-existent path). If it doesn't work, you can try the other syntax: git config http.sslCAinfo /c/your/path/to/cacert-client.pem
|
openSSL: How to create a CAfile
Date : March 29 2020, 07:55 AM
I wish this helpful for you I want the client to send the server a certificate. Now, I'd like to use code that looks like this: , Normally you'd do something like: SSL_CTX_set_client_CA_list(CTX, SSL_load_client_CA_file("/path/to/cacert.crt"));
|
PHP cafile working, capath not (Linux)
Date : March 29 2020, 07:55 AM
With these it helps The problem was within the certificate itself. It had an invalid CR. If I specified the certificate directly there is no issue with it, but if it is used as part of the certs folder I had to remove ^M
|
OpenSSL use -CAFile on LetsEncrypt-Certificate
Date : March 29 2020, 07:55 AM
I wish this helpful for you It looks like chain1.pem file from Let's Encrypt is incomplete. In my case it contains only one certificate - the intermediate CA Let's Encrypt Authority X3 Check the contents of this file. In my case there was only one certificate. openssl x509 -noout -in chain1.pem -subject -issuer
subject= /C=US/O=Let's Encrypt/CN=Let's Encrypt Authority X3
issuer= /O=Digital Signature Trust Co./CN=DST Root CA X3
wget http://apps.identrust.com/roots/dstrootcax3.p7c
openssl pkcs7 -inform der -in dstrootcax3.p7c -out dstrootcax3.pem -print_certs
cp chain1.pem fullchain1.pem
echo >> fullchain1.pem
cat dstrootcax3.pem >> fullchain1.pem
openssl pkcs12 -export -in cert1.pem -inkey privkey1.pem -chain -CAfile fullchain1.pem -out cert1.p12 -name tomcat
openssl pkcs12 -info -in cert1.p12
|