Powershell SSL TLS Cipher Suites For HTTPS Connections -
i'm trying use powershell grab html content https site.
unfortunately, site excepts limited set of ssl / tls cipher suites , suites available powershell not supported.
i following error message if try use invoke-webrequest cmdlet:
invoke-webrequest : request aborted: not create ssl/tls secure channel.
questions:
- is there way specify client ssl / tls cipher suites powershell uses?
- is there cmdlet can use send web requests?
i'd not have switch alternate language, may have if there isn't way specify cipher suite used powershell.
here suites server supports:
tls_dhe_rsa_with_aes_256_gcm_sha384 (0x9f)
tls_dhe_rsa_with_aes_256_cbc_sha256 (0x6b)
tls_dhe_rsa_with_aes_256_cbc_sha (0x39)
tls_dhe_rsa_with_camellia_256_cbc_sha (0x88)
tls_dhe_rsa_with_aes_128_gcm_sha256 (0x9e)
tls_dhe_rsa_with_aes_128_cbc_sha256 (0x67)
tls_dhe_rsa_with_aes_128_cbc_sha (0x33)
tls_dhe_rsa_with_seed_cbc_sha (0x9a)
tls_dhe_rsa_with_camellia_128_cbc_sha (0x45)
my solution use win32 build of curl.exe ssl support , work returned html. curl can downloaded standalone exe from: link curl exe has somewhere in path environment variable or have path hardcoded in script.
Comments
Post a Comment