ca

How to create own self-signed root certificate and intermediate CA to be imported in Java keystore?

谁说我不能喝 提交于 2019-12-03 04:18:01
How to create self-signed root certificate and intermediate CA to be imported in Java keystore? We will use this for SSL and TLS, and later for Client certificate based CLIENT-AUTH authentication. Using OpenSSL and KeyTool. tuomassalo Just a side note for anyone wanting to generate a chain and a number of certificates. Refining @EpicPandaForce's own answer, here's a script that creates a root CA in root-ca/ , an intermediate CA in intermediate/ and three certificates to out/ , each signed with the intermediate CA. #!/bin/bash -x set -e for C in `echo root-ca intermediate`; do mkdir $C cd $C

Sign CSR with BouncyCastle

随声附和 提交于 2019-12-02 19:27:32
问题 I have been looking for the past few days for a solution on my Problem and couldn't find anything. I am missing something in my Code but i cant figure out what :( Somehow when I sign my PKCS#10 the chain is broken. Basically i have a server and a client. I want to have the client send a CSR to the server and the server signs it so they can communicate. Now i did set up a PKCS#12 with BouncyCastle for the Client and i did set up a RootCertificate for the Server (again with BouncyCastle, which

Sign CSR with BouncyCastle

扶醉桌前 提交于 2019-12-02 10:01:31
I have been looking for the past few days for a solution on my Problem and couldn't find anything. I am missing something in my Code but i cant figure out what :( Somehow when I sign my PKCS#10 the chain is broken. Basically i have a server and a client. I want to have the client send a CSR to the server and the server signs it so they can communicate. Now i did set up a PKCS#12 with BouncyCastle for the Client and i did set up a RootCertificate for the Server (again with BouncyCastle, which is in my understanding just a PKCS#12 with the extension to be able to sign Certificates) In Code it

mosquitto_pub rejecting iot.eclipse.org mqtt server certificate saying “Unknown CA”

偶尔善良 提交于 2019-12-02 09:04:48
I am trying to run mosquitto_pub on a Ubuntu linux machine as follows: vbhadra@vbhadra-VirtualBox:~$ mosquitto_pub -h iot.eclipse.org -p 8883 --capath /etc/ssl/certs/ -t house/s1 -m "test message" -d Client mosqpub/9204-vbhadra-Vi sending CONNECT Client mosqpub/9204-vbhadra-Vi received CONNACK Client mosqpub/9204-vbhadra-Vi sending PUBLISH (d0, q0, r0, m1, 'house/s1', ... (12 bytes)) Client mosqpub/9204-vbhadra-Vi sending DISCONNECT As can be seen the mosquitto_pub works file. Now I want to experiment downloading the iot.eclipse.org certificate manually and then use that with mosquitto_pub

用ssl加密apache服务器来建立连接加密网站

青春壹個敷衍的年華 提交于 2019-12-01 16:11:52
ssl介绍: SSL(Secure Sockets Layer,SSL)是一种安全协议,在网景公司(Netscape)推出首版Web浏览器的同时提出,目的是为网络通信提供安全及数据完整性保障,SSL在传输层中对网络通信进行加密。 SSL采用公开密钥技术,保证两个应用间通信的保密性和可靠性,使客户与服务器应用之间的通信不被攻击者窃听。它在服务器和客户机两端可同时被支持,目前已成为互联网上保密通讯的工业标准。现行的Web浏览器亦普遍将HTTP和SSL相结合,从而实现安全通信。此协议其继任者是TLS HTTPS介绍: 超文本传输安全协议(缩写:HTTPS,英语:Hypertext Transfer Protocol Secure)是超文本传输协议和SSL/TLS的组合,用以提供加密通讯及对网络服务器身份的鉴定。HTTPS连接经常被用于万维网上的交易支付和企业信息系统中敏感信息的传输。 HTTPS(全称:Hypertext Transfer Protocol over Secure Socket Layer),是以安全为目标的HTTP通道,简单讲是HTTP的安全版。即HTTP下加入SSL层,HTTPS的安全基础是SSL,因此加密的详细内容就需要SSL。 HTTPS存在不同于HTTP的默认端口及一个加密/身份验证层(在HTTP与TCP之间)。这个系统的最初研发由网景公司进行

Issue with my ca-certificates.crt

一个人想着一个人 提交于 2019-11-30 19:06:34
(I am on Ubuntu 14.10. uname -r => 3.16.0-31-generic) apt-get update Failed to fetch https://get.docker.com/ubuntu/dists/docker/main/binary-amd64/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none. git clone https://github.com/sdelements/lets-chat.git I can't clone anything - fatal: unable to access 'https://github.com/sdelements/lets-chat.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none. docker run hello-world Get https://index.docker.io/v1/repositories/library/hello-world/images:

Server with ECDHE key and cert not working

不问归期 提交于 2019-11-30 15:26:22
I use the below server.c source, i generated sinful-host-cert.pem sinful-host.key as described here: Elliptic Curve CA Guide When running the program get the following errors: 140722397161136:error:10071065:elliptic curve routines:func(113):reason(101):ec_lib.c:995: 140722397161136:error:0B080075:x509 certificate routines:func(128):reason(117):x509_cmp.c:346: I compiled using: gcc server.c -ldl -lcrypto -lssl -o Server The error occurs at this line I think if (SSL_CTX_use_PrivateKey_file(ctx, KeyFile, SSL_FILETYPE_PEM) <= 0) server.c #include <errno.h> #include <unistd.h> #include <malloc.h>

How to add Certificate Authority file in CentOS 7

左心房为你撑大大i 提交于 2019-11-30 06:24:42
问题 I am trying to add certificate Authority (CA) file name - ca.crt to /etc/ssl/certs , for that I followed this article. I copied my ca.crt file to /etc/pki/ca-trust/source/anchors/ and run the command below; update-ca-trust extract After that I checked /etc/pki/ca-trust/extracted/openssl/ca-bundle.trust.crt file, but I didn't find my CA. I am not able to figure out what may be the problem. What am I doing wrong and how can I fix it? 回答1: copy your certificates inside /etc/pki/ca-trust/source

How to check if X509Certificate is CA certificate?

♀尐吖头ヾ 提交于 2019-11-30 04:58:23
I have a X509Certificate instance in Java and I need to identify if it is a CA certificate or user certificate. Can anyone provide any help? Thanks in advance! Jurica Krizanic According to research I have performed, it can be checked by checking basic constraints! Check the API for returning results of getBasicConstraints() method. So if the method returns result != -1 , a certificate can be considered as a CA certificate . I have checked this with several CA certificates (root and intermediate), and it works as described. I have also checked this method with several user certificates, and the

Issue with my ca-certificates.crt

亡梦爱人 提交于 2019-11-29 18:42:25
问题 (I am on Ubuntu 14.10. uname -r => 3.16.0-31-generic) apt-get update Failed to fetch https://get.docker.com/ubuntu/dists/docker/main/binary-amd64/Packages server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none. git clone https://github.com/sdelements/lets-chat.git I can't clone anything - fatal: unable to access 'https://github.com/sdelements/lets-chat.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: