BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Mushy
Quartz | Level 8

Hello,

 

I have recieved three certificates root, intermediate and the server certificate to apply in the Linux server.

How do i verify the validity/correctness of the existing certificate, before applying new certificates?

 

Thanks,

Mushy

1 ACCEPTED SOLUTION

Accepted Solutions
gwootton
SAS Super FREQ
You can use openssl commands to check a certificate against a key and against a certificate authority.

For example:

#Check if key matches certificate, these modulus would match.
openssl rsa -noout -modulus -in server.key
openssl x509 -noout -modulus -in server.crt

# Check if a certificate is valid for a given CA/Intermediate.
openssl verify -CAfile root.crt -untrusted intermediate.crt server.crt
--
Greg Wootton | Principal Systems Technical Support Engineer

View solution in original post

2 REPLIES 2
gwootton
SAS Super FREQ
You can use openssl commands to check a certificate against a key and against a certificate authority.

For example:

#Check if key matches certificate, these modulus would match.
openssl rsa -noout -modulus -in server.key
openssl x509 -noout -modulus -in server.crt

# Check if a certificate is valid for a given CA/Intermediate.
openssl verify -CAfile root.crt -untrusted intermediate.crt server.crt
--
Greg Wootton | Principal Systems Technical Support Engineer
Mushy
Quartz | Level 8

@gwootton  Thanks for the guidance!

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 252 views
  • 1 like
  • 2 in conversation