Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
help with cetificates
November 16, 2022
16:59, EET
Avatar
Mark Petty
Member
Members
Forum Posts: 11
Member Since:
October 26, 2016
sp_UserOfflineSmall Offline

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.

November 16, 2022
17:32, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1032
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Do you mean the ApplicationInstanceCertificates or user authentication certificates? (or I guess you could mean both, but then you would have in practice 2 different certificates)

Forum Timezone: Europe/Helsinki

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_gallery

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0

Administrators: admin: 1