Skip to content

Argument '-k' ignored for not checking SSL certificate #19611

@kuberry

Description

@kuberry

Ran spack with -k option so as to not check SSL certificates. First line of output indicates that I asked for --insecure and will not check SSL certificates. Spack proceeds to fail install hdf5 because of a certificate verification problem.

Error Message

$ https_proxy=someproxy:someport spack -k install hdf5
==> Warning: You asked for --insecure. Will NOT check SSL certificates.
==> Warning: [email protected] cannot build optimized binaries for "skylake". Using best target possible: "x86_64"
[+] /Users/user/releases/spack/opt/spack/darwin-catalina-x86_64/apple-clang-12.0.0/libiconv-1.16-xrjlxcvkn62ahhgvknu3nreo4ehaqex2
[+] /Users/user/releases/spack/opt/spack/darwin-catalina-x86_64/apple-clang-12.0.0/pkgconf-1.7.3-zhcbxznqu7xuml4o5lb5cqumkqqnrzdl
[+] /Users/user/releases/spack/opt/spack/darwin-catalina-x86_64/apple-clang-12.0.0/xz-5.2.5-gfa5h76vfxvbstqeo2ub5aao424gfzks
[+] /Users/user/releases/spack/opt/spack/darwin-catalina-x86_64/apple-clang-12.0.0/zlib-1.2.11-x2anksgssxsxa7pcnhzg5k3dhgacglze
[+] /Users/user/releases/spack/opt/spack/darwin-catalina-x86_64/apple-clang-12.0.0/libxml2-2.9.10-dqzlvh6klvk75t2gw7qnt64s3bspzozx
==> Installing hwloc
==> No binary for hwloc found: installing from source
==> Warning: microarchitecture specific optimizations are not supported yet on mixed compiler toolchains [check [email protected] for further details]
==> Warning: Spack was unable to fetch url list due to a certificate verification problem. You can try running spack -k, which will not check SSL certificates. Use this at your own risk.
==> Warning: Spack was unable to fetch url list due to a certificate verification problem. You can try running spack -k, which will not check SSL certificates. Use this at your own risk.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingfetchingtriageThe issue needs to be prioritized

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions