Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Cyber Security
  3. Question
Cyber Security

Why is Openssl s_server expecting key & certificate in the case of PSK cipher test?

Asked by Amit Sinha Apr 18, 2022 694 views 1 answer
Share

About this question

I am new to security domain,

In the case of PSK why openssl s_server is expecting a certificate and key. If I don't give then it gives errors like below.


$ openssl s_server -psk fcc56e7668194a4775e5b36e2735551a -accept 1440 -cipher PSK-AES128-CBC-SHA  Error opening server certificate private key file server.pem 139623549462168:error:02001002:system library:fopen:No such file or directory:bss_file.c:398:fopen('server.pem','r')


139623549462168:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:400: unable to load server certificate private key file

If I provide a certificate then openssl s_server starts .


$ openssl s_server -psk fcc56e7668194a4775e5b36e2735551a -key key.pem

-accept 1440 -cipher PSK-AES128-CBC-SHA -psk_hint Client_identity

openssl s_client doesn't need certificate


$ openssl s_client -connect localhost:1440 -psk fcc56e7668194a4775e5b36e2735551a 

I have the following questions:


certificate and key is not going to be used in client, only PSK will be used then why does s_server need certificate ?

Is this the right approach to test PSK using openssl server and client.

I am using the RSA key in case of an openssl server to verify the PSK-AES128-CBC-SHA cipher, is this the right key format for this cipher to verify?

Your answer

1 Answer

More Cyber Security discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Cyber Security Blogs

Guides, tips and career advice on Cyber Security from JanBask experts.