16:59, EET
October 26, 2016
Hi,
I know this topic has been discussed before (and I’ve read most of the responses), but I can’t get certificates to work in my java code. I’m currently trying to simply get the prosys client talking to the prosys server, and I’m not succeeding. I’m hoping that once I have that working and have the appropriate files I can make my code work as well.
Could you walk me through the steps (using openssl on Windows) on how to generate the certificate and private key and if and if and where files should be copied.
I’ve tried:
openssl genrsa -out default_privatekey.pem 2048
openssl req -new -key default_privatekey.pem -out cert.csr -subj “/C=US/ST=VA/L=Fairfax/O=Sightline/OU=IT/CN=Sydney”
openssl x509 -req -days 3650 -extfile extensions.cnf -in cert.csr -signkey default_privatekey.pem -out sydney.crt
openssl x509 -in sydney.crt -inform PEM -out sydney.der -outform DER
with the extensions file:
basicConstraints=CA:TRUE
authorityKeyIdentifier=keyid,issuer
keyUsage=dataEncipherment,keyEncipherment,nonRepudiation,digitalSignature,keyCertSign,cRLSign
extendedKeyUsage=serverAuth,clientAuth
subjectAltName=URI:URN:sydney
I’m using the resulting files sydney.der and default_privatekey.pem (no password) and get “server rejected selected identification (wrong username or password, certificate or private key)
-Thanks
-Mark
Any help would be appreciated.
Most Users Ever Online: 1919
Currently Online:
33 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 726
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1