User Tools

Site Tools


sk2:openssl_ssl_api

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
sk2:openssl_ssl_api [2026/11/12 23:37] – jkonczaksk2:openssl_ssl_api [2026/11/17 22:22] (current) – [Klucze i certyfikaty] jkonczak
Line 10: Line 10:
 Wygeneruj potrzebne pliki za pomocą powyższego skryptu. Wygeneruj potrzebne pliki za pomocą powyższego skryptu.
 Wyświetl informacje o certyfikatach komendą: \\ Wyświetl informacje o certyfikatach komendą: \\
-''openssl x509 -noout -text -certopt no_sigdump,no_pubkey -in <scieżka do certyfikatu>'' +''openssl x509 -noout -text -certopt no_sigdump,no_pubkey -in <scieżka do pliku certyfikatu>'' 
  
 ==== Gotowe narzędzia do tworzenia prostych połączeń TLS w powłoce ==== ==== Gotowe narzędzia do tworzenia prostych połączeń TLS w powłoce ====
Line 376: Line 376:
   * nawiązywał połączenie szyfrowane   * nawiązywał połączenie szyfrowane
      
-<code cpp klient_http.cpp>+<code cpp http_client.cpp>
 #include <errno.h> #include <errno.h>
 #include <netdb.h> #include <netdb.h>
Line 410: Line 410:
     if (std::smatch m; std::regex_search(headers, m, std::regex("(?:^|\n)(Location:.*)")))     if (std::smatch m; std::regex_search(headers, m, std::regex("(?:^|\n)(Location:.*)")))
       printf("%s\n", m[1].str().data());       printf("%s\n", m[1].str().data());
-    if (std::smatch m; std::regex_search(body,    m, std::regex("<title>[^]*?</title>")))+    if (std::smatch m; std::regex_search(body,    m, std::regex("<title[>\\s][^]*?</title>")))
       printf("\n%s\n", m[0].str().data());       printf("\n%s\n", m[0].str().data());
   } else   } else
sk2/openssl_ssl_api.1794526626.txt.gz · Last modified: by jkonczak