Regex for validating domain name

While there are detail differences between SSL and TLS the following descriptions apply to both protocols.

Note: SSLv2 was banned by RFC 6176 which contains a dire list of its shortcomings.

You can either buy an SSL (X.509) certificate or generate your own (a self-signed certificate) for testing or, depending on the application, even in a production environment.

All references to SSL below are retained for reasons of common usage (the term is still more frequently used than TLS) but should be simultaneously translated by the reader into TLS.

In the case of HTTPS the well-known port number is 443, in the case of IMAPS - port 993, POP3S - port 995 etc..

The next level of description requires some familiarity with the terms MAC (Message Authentication Code), Secure hashes, symmetric and asymmetric cryptographic algorithms.

And if your eyes glaze over when people start talking about SSL, security and certificates - start glazing now. The RFC hyperlinks in the page below link to a plain text version which was copied to our site when the RFC was issued.

We started doing this a long, long time ago when RFCs were maintained in some strange places, occasionally moved location, and performance and reliability of the repositories was very variable (being generous). The IETF, like IANA, have solid web sites with excellent performance and continually improving features.

regex for validating domain name-29regex for validating domain name-11regex for validating domain name-16

This is a survival guide to the eye-glazing topic of TLS/SSL and X.509 (SSL) certificates - including self-signed certificates.

Join our conversation (8 Comments).
Click Here To Leave Your Comment Regex for validating domain name.

Comments:

  1. 1
    Steve

    The private sex show loaded quickly, which is always a blessing as they start charging from the moment you press the button.

  2. 1
    Steve

    Learn how to register your business with Mass Tax Connect — DOR's web-based application for filing and paying taxes.

  3. 1
    Steve

    h/t The Big Lead A Fulbright scholar, published author and MBA, Banks has appeared on live radio all over the world; he’s also a member of the Football Writers Association of America, U. Basketball Writers Association, and Society of Professional Journalists.

  4. 1
    Steve

    In some instances, ESE students are taught on their own in a separate classroom or school.

  5. 1
    Steve

    We emailed back and forth for a few weeks and finally my wife Barbara went to visit their relatives in Durant so I had the house to myself for a day. Answering his knock, I opened the door and he came in. Of course it wasn't night, in fact it was midafternoon, but I decided to go there anyway.

Leave a Reply

Your email address will not be published. Required fields are marked *