Skip to content

Commit

Permalink
switch from RSA to ECDSA
Browse files Browse the repository at this point in the history
Signed-off-by: Bob Callaway <bcallaway@google.com>
  • Loading branch information
bobcallaway committed Aug 10, 2022
1 parent 3aa5db3 commit 760b801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/request-certificate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var (
)

// Some of this is just ripped from cosign
func GetCert(signer *signature.RSAPKCS1v15SignerVerifier, fc fulciopb.CAClient, oidcIssuer string, oidcClientID string) (*fulciopb.SigningCertificate, error) {
func GetCert(signer *signature.ECDSASignerVerifier, fc fulciopb.CAClient, oidcIssuer string, oidcClientID string) (*fulciopb.SigningCertificate, error) {

tok, err := oauthflow.OIDConnect(oidcIssuer, oidcClientID, "", "", oauthflow.DefaultIDTokenGetter)
if err != nil {
Expand Down Expand Up @@ -99,7 +99,7 @@ func NewClient(fulcioURL string) (fulciopb.CAClient, error) {
}

func main() {
signer, _, err := signature.NewDefaultRSAPKCS1v15SignerVerifier()
signer, _, err := signature.NewDefaultECDSASignerVerifier()
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 760b801

Please sign in to comment.