Changes default JWK type to be the same as the PEM

If the input PEM is private then the default JWK is private and if the input PEM
is public the default JWK is public.