Skip to Content.
Sympa Menu

mace-opensaml-users - Re: how to generate X509Certificate

Subject: OpenSAML user discussion

List archive

Re: how to generate X509Certificate


Chronological Thread 
  • From: Brent Putman <>
  • To:
  • Subject: Re: how to generate X509Certificate
  • Date: Wed, 10 Oct 2007 08:59:09 -0700

This works, but if you want a higher-level, KeyInfo-oriented API, take a
look at the utility methods located in the
org.opensaml.xml.security.keyinfo.KeyInfoHelper utility class. This is
located in the java-xmltooling project.

>
>
> import org.apache.commons.codec.binary.Base64;
>
> String encodedcert = new
> String(Base64.encodeBase64(x509Cert.getEncoded()));
> System.out.println("encoded certificate = " + encodedcert);
>
>



Archive powered by MHonArc 2.6.16.

Top of Page