nss

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

我的未来我决定 提交于 2019-11-28 17:00:30
I'm interested in Java-NSS libraries, and I'm reading the Sun's P11 Guide . I am confused on the following: What is the difference between using a PKCS12 keystore and a PKCS11 keystore? A keystore is just a keystore, right? Are there some differences? Can they be used interchangeably in any aspect? 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,

cURL not working (Error #77) for SSL connections on CentOS for non-root users

不羁岁月 提交于 2019-11-28 09:41:28
Just recently my server has stopped working for curl requests to https:// addresses for my web server. Having dug around a little it appears that it's a problem with the user the webserver is running. If I SSH onto the server as root & call curl -I -v https://google.com ... I get the following response... * About to connect() to google.com port 443 (#0) * Trying 173.194.67.113... connected * Connected to google.com (173.194.67.113) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb * CAfile: /etc/pki/tls/certs/ca-bundle.crt CApath: none * SSL connection using SSL_RSA_WITH_RC4

PHP Curl (with NSS) is probably using SSLv3 instead of TLS when connecting to https

让人想犯罪 __ 提交于 2019-11-28 09:15:14
I'm using curl library (with NSS) in PHP to connect to my other server. Everything was fine until last week, when the destination server stoped supporting SSLv3 due to poodle vulnerability (CloudFlare by the way). Now, I'm trying to make connection using TLS, but I'm still getting "SSL connect error". There is sample code, I'm using: $ch = curl_init(); curl_setopt_array( $ch, array( CURLOPT_URL => 'https://www.lumiart.cz', CURLOPT_RETURNTRANSFER => true, CURLOPT_SSLVERSION => 1, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_VERBOSE => true ) ); $output = curl_exec( $ch ); echo $output; print_r(

How to create a certificate chain using keytool?

我是研究僧i 提交于 2019-11-27 20:14:03
问题 I want to create certificate chain in java as follows: ca.mycompany.com |--asia.mycompany.com |--india.mycompany.com where ca.mycompany.com is a root certificate (self signed). I know this is possible with OpenSSL. But is it possible to to achieve this with keytool? If not, can I achieve this with Mozilla NSS library? 回答1: There is an example in the keytool documentation that shows how to do this: keytool -genkeypair -keystore root.jks -alias root -ext bc:c keytool -genkeypair -keystore ca

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

白昼怎懂夜的黑 提交于 2019-11-27 10:00:04
问题 I'm interested in Java-NSS libraries, and I'm reading the Sun's P11 Guide. I am confused on the following: What is the difference between using a PKCS12 keystore and a PKCS11 keystore? A keystore is just a keystore, right? Are there some differences? Can they be used interchangeably in any aspect? 回答1: 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

validating X.509 certificate on linux

旧城冷巷雨未停 提交于 2019-11-27 03:35:18
问题 I have just started working with X.509 certificates. Can any one tell me how to go about validating a certificate on linux? The use case is that my app had downloaded a certificate in a previous session and I have to check if it is still valid (i.e., not expired or revoked since it was stored) before starting a new session. I understand a full sample will not be possible here, but any pointers will be useful. EDIT: Further investigation revealed another utility called Network Security