Bin e padrões para validação de cartão de crédito.
| Bandeira | Começa com | Máximo de número | Máximo de número cvc |
|---|---|---|---|
| Visa | 4 | 13,16 | 3 |
| Mastercard | 5 | 16 | 3 |
| #!/bin/bash | |
| # Get directory of script | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| if [[ $# -ne 1 ]] | |
| then | |
| echo "ERROR: This script expects the namespace name to be given as an argument" | |
| echo "e.g. ./ecr-cred-updater.sh my-namespace" | |
| exit 1 |
| node { | |
| repositoryAccess = 'https://' | |
| repositoryAccessSeparator = '/' | |
| echo "repository host: ${repositoryHost}" // github.com | |
| echo "repository path: ${repositoryPath}" // <user>/<repository>.git | |
| echo "repository jenkins credentials id: ${credentialsId}" // jenkins credentials for the jenkins git account who have commit access | |
| echo "repository branch: ${branch}" // master or another branch | |
| echo "repository commiter username: ${repositoryCommiterUsername}" // Jenkins account email | |
| echo "repository commiter name: ${repositoryCommiterEmail}" // Jenkins |
The process starts by creating the CSR and the private key:
openssl req -nodes -newkey rsa:2048 -nodes -keyout dotmarks.net.key -out dotmarks.net.csr -subj "/C=GB/ST=London/L=London/O=dotmarks/OU=IT/CN=dotmarks.net"
Generates