Hi ,
Please see in attach the files that I'm using.
I've just taken a look at your certificates and they've not been
generated correctly:
$ openssl x509 -subject -issuer -noout -in ca.crt -dates -serial
subject= /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
issuer= /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
notBefore=Nov 27 11:52:34 2017 GMT
notAfter=Nov 27 11:52:34 2018 GMT
serial=A1E0F7319AAD90C0
$ openssl x509 -subject -issuer -noout -in client.crt -dates -serial
subject= /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
issuer= /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
notBefore=Nov 27 11:53:16 2017 GMT
notAfter=Nov 27 11:53:16 2018 GMT
serial=01
$ openssl x509 -subject -issuer -noout -in server.crt -dates -serial
subject= /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
issuer= /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
notBefore=Nov 27 11:52:55 2017 GMT
notAfter=Nov 27 11:52:55 2018 GMT
serial=01
that is, the subject and issuer of the CA, server and client certs
are all the same ; also, the serial number of both client and server
certificates are the same.
You will need to alter the way you generate your certificates so
that there is a clear distinction between CA, server and client
cert.
HTH,
JJK
I generate the certificates with the following commands:
-
##
Create CA
-
openssl
genrsa -out ca.key 4096
-
openssl
req -new -x509 -days 365 -key ca.key -out ca.crt
-
openssl
x509 -in ca.crt -out ca.pem -outform PEM
-
-
##
Create the Server Key and CSR
-
openssl
genrsa -out server.key 4096
-
openssl
req -new -key server.key -out server.csr
-
openssl
x509 -req -days 365 -in server.csr -CA ca.crt -CAkey ca.key
-set_serial 01 -out server.crt
-
openssl
x509 -in server.crt -out server.pem -outform PEM
-
-
##
Create the Client Key and CSR
-
openssl
genrsa -out client.key 4096
-
openssl
req -new -key client.key -out client.csr
-
openssl
x509 -req -days 365 -in client.csr -CA ca.crt -CAkey ca.key
-set_serial 01 -out client.crt
-
openssl
x509 -in client.crt -out client.pem -outform PEM
I
left the default value of each question that openssl ask
when it's creating the certificates like Country, City,
CN, etc. Like this way:
openssl req -new
-key server.key -out server.csr
You are about to be
asked to enter information that will be incorporated
into your
certificate request.
What you are about
to enter is what is called a Distinguished Name or a
DN.
There are quite a
few fields but you can leave some blank
For some fields
there will be a default value,
If you enter '.',
the field will be left blank.
Country Name (2
letter code) [AU]:
State or Province
Name (full name) [Some-State]:
Locality Name (eg,
city) []:
Organization Name
(eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit
Name (eg, section) []:
Common Name (e.g.
server FQDN or YOUR name) []:
Please enter the
following 'extra' attributes
to be sent with
your certificate request
An optional company
name []:
|
--
openssl-users mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users