How to assign an SSL certificate per domain to secure the mail server in Plesk (SNI support)?

Follow

Comments

1 comment

  • Avatar
    Ilya Ladygin (Edited )

    this command didn't worked for me: 

    echo 'Q' | openssl s_client -connect localhost:465 -servername example.com -showcerts 2>&1 | grep -Eo 'CN=[^/]+' | uniq

    i have to modify this part: grep -Eo 'CN=[^/]+' into grep -Eo 'CN\s*=[^/]+' because of space char before "="

    also, new command:

    echo 'Q' | openssl s_client -connect localhost:465 -servername example.com -showcerts 2>&1 | grep -Eo 'CN\s*=[^/]+' | uniq

     

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request