Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

create public and private key for jwt

openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -pubout -outform PEM -out public.pem
Comment

generate private key for jwt

PrivateKey privateKey = // Load an RSA private key from configuration
Instant now = Instant.now();

String jwt = Jwts.builder()
        .setAudience("https://${yourOktaDomain}/oauth2/default/v1/token")
        .setIssuedAt(Date.from(now))
        .setExpiration(Date.from(now.plus(5L, ChronoUnit.MINUTES)))
        .setIssuer(clientId)
        .setSubject(clientId)
        .setId(UUID.randomUUID().toString())
        .signWith(privateKey)
        .compact();
Comment

PREVIOUS NEXT
Code Example
Shell :: install sublime text editor ubuntu terminal 
Shell :: Using git filter-branch to Git Change Commit Author 
Shell :: aternative wget comand 
Shell :: using docker as a managed vm 
Shell :: rename files sequentially linux 
Shell :: Help manual in linux 
Shell :: install rtools rstudio 
Shell :: linux encrypt pdf 
Shell :: it is required that your private key files are not accessible by others ubuntu 
Shell :: download istioctl 
Shell :: tmux status line with blank line on top 
Shell :: how to install windows service using batch file 
Shell :: screenshot in ubuntu 
Shell :: make error readline/readline.h 
Shell :: how to rename a file in linux 
Shell :: pip info package location 
Shell :: how to use /dev/urandom 
Shell :: qemu-img convert vdi to qcow2 
Shell :: error: insufficient permissions for device 
Shell :: modify file modified time linux 
Shell :: ubuntu command upgrade application 
Shell :: adapta ubuntu 
Shell :: cp exclude file 
Shell :: docker run with privileges 
Shell :: scp permission denied (publickey) but ssh works 
Shell :: check for remote added git 
Shell :: mac docker-compose 
Shell :: vscode installation ubuntu 
Shell :: Install Redis GUI on Ubuntu 20.04 
Shell :: install wmctrl 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =