Jose\Object\JWKSetInterface::toPEM PHP Method

toPEM() public method

..), they will not be part of the result. If keys have a key ID, it is used as index.
public toPEM ( ) : string[]
return string[]
    public function toPEM();

Usage Example

 /**
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function pemAction()
 {
     return new Response(json_encode($this->jwkset->toPEM()), Response::HTTP_OK, ['content-type' => 'application/json']);
 }