ws: Create self-signed certificates with subjectAltName
ws: Create self-signed certificates with subjectAltName

Chromium insists on certificates having subjectAltName.  With this the
certificate can be imported into your ~/.pki to make Chromium accept it:

    openssl s_client -connect 127.0.0.1:9090 < /dev/null | \
        sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/cert.pem
    certutil -d sql:$HOME/.pki/nssdb -A -t "TC,C,P" -n cockpit -i /tmp/cert.pem

Add localhost and 127.0.0.1 as most common cases for now. Other cases
can be added in the future upon request (e. g. for official private IP
ranges).

This does not change `create_temp_file()`, just moves it further up in
the file so that we can use it from `openssl_make_dummy_cert()`.

moraleslazaro/cockpit,stefwalter/cockpit,cockpit-project/cockpit,deryni/cockpit,deryni/cockpit,Scribery/cockpit,cockpituous/cockpit,stefwalter/cockpit,mvollmer/cockpit,Scribery/cockpit,mareklibra/cockpit,Scribery/cockpit,Scribery/cockpit,deryni/cockpit,andreasn/cockpit,moraleslazaro/cockpit,cockpit-project/cockpit,stefwalter/cockpit,andreasn/cockpit,deryni/cockpit,stefwalter/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,petervo/cockpit,mareklibra/cockpit,petervo/cockpit,moraleslazaro/cockpit,cockpituous/cockpit,cockpituous/cockpit,andreasn/cockpit,mvollmer/cockpit,stefwalter/cockpit,martinpitt/cockpit,garrett/cockpit,deryni/cockpit,deryni/cockpit,martinpitt/cockpit,moraleslazaro/cockpit,deryni/cockpit,cockpituous/cockpit,mvollmer/cockpit,petervo/cockpit,SotolitoLabs/cockpit,martinpitt/cockpit,garrett/cockpit,petervo/cockpit,SotolitoLabs/cockpit,moraleslazaro/cockpit,mareklibra/cockpit,mareklibra/cockpit,cockpit-project/cockpit,SotolitoLabs/cockpit,andreasn/cockpit,martinpitt/cockpit,andreasn/cockpit,martinpitt/cockpit,Scribery/cockpit,cockpituous/cockpit,garrett/cockpit,cockpituous/cockpit,mareklibra/cockpit,garrett/cockpit,petervo/cockpit,garrett/cockpit,andreasn/cockpit,SotolitoLabs/cockpit,petervo/cockpit,mareklibra/cockpit,Scribery/cockpit,cockpit-project/cockpit,andreasn/cockpit,stefwalter/cockpit,stefwalter/cockpit,Scribery/cockpit,SotolitoLabs/cockpit,SotolitoLabs/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,SotolitoLabs/cockpit,cockpit-project/cockpit,mvollmer/cockpit,petervo/cockpit