Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- cd /home/vscode/.aspnet/https/
- apt-get update \
- && apt-get install ca-certificates openssl \
- && rm -rf /var/cache/apt/* \
- && openssl pkcs12 -in aspnetapp.pfx -out localhost.pem -nokeys -nodes -passin pass:SecurePwdGoesHere \
- && openssl pkcs12 -in aspnetapp.pfx -out localhost.key -nocerts -nodes -passin pass:SecurePwdGoesHere \
- && openssl pkcs12 -export -out localhost-nopass.pfx -inkey localhost.key -in localhost.pem -passout pass: \
- && chmod 644 * \
- && chmod 600 *.pfx
- cp localhost.pem /usr/local/share/ca-certificates/localhost.crt
- cp localhost-nopass.pfx /root/.dotnet/corefx/cryptography/x509stores/my/
- apt-get update \
- && apt-get install ca-certificates \
- && rm -rf /var/cache/apt/* \
- && update-ca-certificates 2>/dev/null \
- && ls /etc/ssl/certs/*localhost* \
- && echo 'cert imported correctly if listed above'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement