Jump to content
OpenSplice DDS Forum
Sign in to follow this  
getviswa

Evaluation version 6.1 X509 authtication

Recommended Posts

getviswa   

Hello All,

 

I'm using 6.1 evaluation version to testing X509 authentication. I have created self signed certificate (key and cert).

 

Steps i followed to generate self signed certificate

 

Generating Private Key

# openssl genrsa –out key.dds.pem 1024

Generating CSR

# openssl req –new –key key.dds.pem –out dds.csr

Generating Self Signed Key

# openssl x509 -req -days 365 -in dds.csr -signkey key.dds.pem -out dds.pem

 

key.dds.key file format:

-----BEGIN RSA PRIVATE KEY-----

<key>

-----END RSA PRIVATE KEY-----

 

My config file

  <X509Authentication>
	  <Credentails>
		    <Key>file://keyCerts/key.dds.pem</Key>
		    <Cert>file://keyCerts/dds.pem</Cert>
     </Credentails>
	  <TrustedCertificates>file://keyCerts/trusted/trusted1.pem</TrustedCertificates>
  </X509Authentication>

 

While i am trying to start ospl i am facing following error, Please help me in solving this issue.

 

========================================================================================

Report : ERROR

Date : Wed Jul 11 11:50:31 2012

Description : Failed to read the private key from file://keyCerts/key.dds.pem

Node : viswa-co

Process : networking <12899>

Thread : main thread 7f9be96e5700

Internals : V6.1.1p1/6257f53/f11a680/networking: nw_authenticationResolvePrivateKeyFromUri/nw_authentication.c/525/0/1341987631.757719810

========================================================================================

Report : ERROR

Date : Wed Jul 11 11:50:31 2012

Description : Failed to read private key from URI 'file://keyCerts/key.dds.pem'

Node : viswa-co

Process : networking <12899>

Thread : main thread 7f9be96e5700

Internals : V6.1.1p1/6257f53/f11a680/networking: nw_authenticationConfigInitPrivateKey/nw_authentication.c/563/0/1341987631.757742033

========================================================================================

Report : ERROR

Date : Wed Jul 11 11:50:31 2012

Description : Failed to initialize credentials

Node : viswa-co

Process : networking <12899>

Thread : main thread 7f9be96e5700

Internals : V6.1.1p1/6257f53/f11a680/networking: parseX509AuthenticationElement/nw_authentication.c/696/0/1341987631.757752100

========================================================================================

Report : ERROR

Date : Wed Jul 11 11:50:31 2012

Description : Unknown error

Node : viswa-co

Process : networking <12899>

Thread : main thread 7f9be96e5700

Internals : V6.1.1p1/6257f53/f11a680/networking: Security Module Initialization/nw_controller.c/755/0/1341987631.757762107

 

 

Thanks

-Viswa

Share this post


Link to post
Share on other sites
getviswa   

Hello All,

 

File URI syntax was the issue. "file://keyCerts/key.dds.pem" changed to "file:///keyCerts/key.dds.pem". Now it is not showing errors.

 

Thanks

-Viswa

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×