Skip to content

Commit

Permalink
fix(sh): fix python certs
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonos committed Aug 23, 2024
1 parent fca748c commit 9cad3c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .assets/config/bash_cfg/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function fxcertpy {

# iterate over certify files
for certify in ${certify_paths[@]}; do
echo "${certify//$HOME/\~}"
echo "${certify//$HOME/\~}" >&2
# iterate over installed certificates
for path in ${cert_paths[@]}; do
serial=$(openssl x509 -in "$path" -noout -serial -nameopt RFC2253 | cut -d= -f2)
Expand Down
2 changes: 1 addition & 1 deletion .assets/provision/fix_azcli_certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ fi
for path in ${cert_paths[@]}; do
serial=$(openssl x509 -in "$path" -noout -serial -nameopt RFC2253 | cut -d= -f2)
if ! grep -qw "$serial" "$CERTIFY_CRT"; then
echo "$(openssl x509 -in $path -noout -subject -nameopt RFC2253 | sed 's/\\//g')"
echo "$(openssl x509 -in $path -noout -subject -nameopt RFC2253 | sed 's/\\//g')" >&2
CERT="
$(openssl x509 -in $path -noout -issuer -subject -serial -fingerprint -nameopt RFC2253 | sed 's/\\//g' | xargs -I {} echo "# {}")
$(openssl x509 -in $path -outform PEM)"
Expand Down
2 changes: 1 addition & 1 deletion .assets/provision/fix_certifi_certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fi

# iterate over certify files
for certify in ${certify_paths[@]}; do
echo "${certify//$HOME/\~}"
echo "${certify//$HOME/\~}" >&2
# iterate over installed certificates
for path in ${cert_paths[@]}; do
serial=$(openssl x509 -in "$path" -noout -serial -nameopt RFC2253 | cut -d= -f2)
Expand Down

0 comments on commit 9cad3c6

Please sign in to comment.